r - Replace X-axis with own values -


i have question regarding command plot().

is there way eliminate x-axis , replace own values? know can rid of axis doing

plot(x,y, xaxt = 'n') 

and add axis with

axis(side = 1 etc.) 

however, when add axis, still refers data plotted 'x'. plot 'y'-values , add x-axis own in sense of "drawing" x-axis own values specified. there way that?

the background of question 2 data frames differ in length , therefore cannot plot them.

not sure if it's mean, can this:

plot(1:10, xaxt = "n", xlab='some letters') axis(1, at=1:10, labels=letters[1:10]) 

which gives graph:

enter image description here


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -