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.
______________________________________________
R-help@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.