Steps for Completion:
- Use the basic ggplot commands to create two of the plots from Activity B (Topic and VisitedResources).
- Use the Grammar of Graphics to improve your graphics by layering upon the base graphic. The graph should follow these guidelines:
- Histograms should be rebinned.
- Change the fill colors of one- and two-dimensional objects. The line colors should be black.
- Add a title to the graph.
- Apply the appropriate font sizes and colors to the x- and y-axes.
Outcome:
The complete code is as follows:
p1 <- ggplot(df_edu,aes(x=Topic))p2 <- ggplot(df_edu,aes(x=VisitedResources))p1 + geom_bar(color=1,fill=3) + ylab("Count")+ theme(axis.text.y=element_text(size=10), axis.text.x=element_text(size ...