-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Using the code below the figure that appears in the margin has an overly small font size. Do you know if Is this something that is a result of the data/plot, or the way that msmbstyle is doing the formatting?
# If tidyverse package not installed in RStudio, remove '#' from next line
# The read_csv comamnd is part of the Tidyverse package readr
# install.packages("tidyverse")
library(tidyverse)
# Read the data
data <- read_csv("country,number_of_species
Ecuador,96
Peru,87
Colombia,52
Bolivia,43
Venezuela,18
Argentina,7")
# Default ggplot figure style
# Note that the package is called ggplot2 but the command is 'ggplot'
ggplot(data, aes(country, number_of_species)) + # Specify x first, then y
geom_bar(stat = "identity") + # Plot type
theme_gray()
With grateful thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels