I want to make this code using qplot into code using ggplot:
qplot(tuition,data = d0,bins=30, facets = .~ `School Type`)
and this gives the graph style that I want:
however I want to use ggpplot and the code that I tried is:
p <- ggplot(data = d0, aes(x=tuition))
p +geom_histogram()
p +facet_wrap(~`School Type`)
and this give a plot with nothing on the y axis and I'm not sure why:
how can I change my ggplot code to make the plot look like the qplot plot?
qplot
as a "gateway" to learningggplot
, years ago. But now we would recommend starting withggplot
and learning how that works from the outset. - neilfws