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

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -