graph - R Plot - Do not understand behavior of axis function -


I am quite new to R and am searching for axis function. Here is a small piece of code

  x = seq (0,1,0.2) y = seq (0,1,0.2) x1 = c (1,1) y1 = c ( 0, 1) Axis (1, = x, label = x, pause = 0), axis (2, at 1) plot (x1, y1, xlab = "x-axis", ylab = "y-axis", axis = FALSE) = Y, labels = y) abline (0,1)  

This is a simple xy graph, what exactly do I want to label the Y axis (0,0.2,0.4,0.6,0.8, 1.0). Although there are some weird X axis going on here (0.6,0.8,1) I've spent some time, but I think I'm stuck. Does this give only a suggestion to the axis system which can choose to ignore it? What am I missing here? Thanks a lot for your help? Enter image details here

By default, does not plot unnecessary white space, if you do not consume excessive If you want white space then you apply it with axim and yli logic.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -