graph - How to draw single axis plot in R -


i wish draw very simple line 3 numbers. below

|------|--------------|  0.5   1.5           3.4   

is simple ask?

first, plot nothing, remove axes, , add x-axis in @ specified points:

x <- c(.5, 1.5, 3.4) plot(0, xlim = c(0, 3.5), axes=false, type = "n", xlab = "", ylab = "") axis(1, @ = x, labels = x) 

enter image description here


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -