X axis does not match barplot

前端 未结 2 528
温柔的废话
温柔的废话 2020-12-30 13:33

I used barplot() function to create a stacked chart from matrix.

Matrix looks like this:

1 0.989013 0.010987
2 0.999990 0.000010
3 0.999990 0.000010         


        
2条回答
  •  灰色年华
    2020-12-30 14:19

    Look at the updateusr function in the TeachingDemos package. This function will change or "update" the user coordinates of a plot. The example shows changing the coordinates of the x axis of a barplot to match the intuitive values for additional plotting.

提交回复
热议问题