r - Same code different plot in qplot vs ggplot -


i different results, code should equivalent?

qplot(x = price, data = diamonds) + facet_wrap(~cut) 

vs

ggplot(aes(x = diamonds$price), data = diamonds) + geom_histogram()  + facet_wrap(~cut) 

try instead

ggplot(aes(x = price), data = diamonds) + geom_histogram()  + facet_wrap(~cut) 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -