# \donttest{
# Fetch carbon dioxide emissions:
emissions <- get_emissions()
# Plot output (including land use change) using package's built-in ggplot2 defaults
plot_emissions_with_land(emissions)
# Or just call plot_emissions_with_land(), which defaults to get_emissions() dataset
plot_emissions_with_land()
# You can also select a region by name and starting year
plot_emissions_with_land(region='United States', start_year=1950)
p <- plot_emissions_with_land(emissions, print = FALSE)
# Modify plot such as: p + ggplot2::labs(title='Anthropogenic Carbon Emissions')# }
Run the code above in your browser using DataLab