On Mon, Sep 6, 2010 at 11:07 AM, tooblue <kaiyan at berkeley.edu>
wrote:>
> I simply put, ?plot(density(XXXX), main="XXXX", + xlab =
"XXX"), it says that
> I have an unexpected "=" in it.
You just have an extra ' + ' before the xlab argument:
plot(density(rnorm(100)), main = "XXXX", xlab = "XXX")
ought to do it.
Cheers,
Josh
> --
> View this message in context:
http://r.789695.n4.nabble.com/how-to-change-the-xlab-name-tp2528733p2528733.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/