[R] how to change the xlab name?

David Winsemius dwinsemius at comcast.net
Mon Sep 6 20:33:01 CEST 2010


On Sep 6, 2010, at 2:07 PM, tooblue wrote:

>
> I simply put,  plot(density(XXXX), main="XXXX", + xlab = "XXX"), it  
> says that
> I have an unexpected "=" in it.

It may be a case of a confused parser. You have an extraneous "+" in  
there:

 > XXXX = rnorm(100)
 > plot(density(XXXX), main="XXXX",  xlab = "XXX")  # "works"

If on the other hand you wanted to construct a more complex title then  
you will probably need to read the expression and bquote help pages  
and submit a more descriptive problem statement.

-- 
David.



More information about the R-help mailing list