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)
Comments
Post a Comment