Skip to content
Prev 205831 / 398506 Next

Plotting numeric values against non numeric items

On 01/09/2010 12:38 PM, lse1986 wrote:
Hi Sam,
While I don't know what you want the graph to look like, I would suggest 
the following:

xf<-factor(x)
plot(as.numeric(xf),rnorm(10),type="l",xaxt="n")
axis(1,at=1:10,labels=xf)

Jim