David Hajage
unread,Mar 27, 2009, 12:30:50 PM3/27/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ggplot2
Hello,
I don't understand the difference between this two examples :
p <- qplot(x = mtcars$wt, y=mtcars$mpg) # Doesn't work
p
p + geom_hline(yintercept=20)
Erreur dans data.frame(..., check.names = FALSE) :
les arguments impliquent des nombres de lignes différents : 32, 1
q <- qplot(x = wt, y=mpg, data = mtcars) # Works
q + geom_hline(yintercept=20)
I know that it is better to work with one data.frame instead of two vectors, but I would like to know why the first example doesn't work...
Thank you very much.
David