library(ggplot2)
Let us create data frame with two variables to make a scatter plot in default ggplot2 theme.
x <- rnorm(500, mean=65, sd=20) y <- rnorm(500, mean=2, sd=20) - x df <- data.frame(x=x, y=y)Let us create a simple scatter plot with default grey theme.
df %>% ggplot(aes(x=x,y=y)) + geom_point()Let us change the default theme to a simple black and white theme. ggplot2 black and white theme is called theme_bw(). Let us make the scatter in ggplot theme_bw()
df %>% ggplot(aes(x=x,y=y)) + geom_point()+ theme_bw()