plot
--- XinMeng <xmeng at capitalbio.com> wrote:
Hello sir: a data with 2 columns: id x a 1 b 2 c 3 I wanna get such kind of plot: x: a b c y:1 2 3 But the plot command doesn't permit string character as x. How can I get it ? Thanks a lot ! My best
It is not clear exactly what kind of a plot you want
but is it something like this?
x <- c("a", "b", "c")
y <- c(1,2,3)
plot(y, axes=F)
axis(1, at=c(1:3), labels= x)
axis(2, at = y, labels=y)
box()