Data visualization is a critical aspect of statistics and data science. Another awesome feature of ggplot2 is its link with the plotly library. In this R graphics tutorial, we present a gallery of ggplot themes.. You’ll learn how to: Change the default ggplot theme by using the list of the standard themes available in ggplot2 R package. In contrast, size=I(3) sets each point or line to three times the default size. Use I(value) to indicate a specific value. We’ll learn about what all these things mean shortly. You can easily and quickly change this to a white background color by using the theme functions, such as theme_bw(), theme_classic(), theme_minimal() or theme_light() (See ggplot2 themes gallery). You can visualize the count of categories using a bar plot or using a pie chart to show the proportion of each category. Multi groups line chart with ggplot2 ggplot (data, aes (x=team, y=score)) + geom_boxplot (fill='green') The smallest values are in the first quartile and the largest values in the fourth quartiles. In contrast, size=I(3) sets each point or line to three times the default size. Line Graph The issue is explained here. Multiple barplots in R For that reason, it might be advisable to assign fixed colors to each of our groups. When the variable on the x-axis is numeric, it is sometimes useful to treat it as continuous, and sometimes useful to treat it as categorical. Here are some examples using automotive data (car mileage, weight, …