| plot_temp2k | R Documentation | 
Plots the Common Era 2000-year global temperature anomaly retrieved using get_temp2k() with ggplot2. The output ggplot2 object may be further modified.
plot_temp2k(
  dataset = get_temp2k(),
  instrumental = TRUE,
  filtered = TRUE,
  print = TRUE
)
dataset | 
 Name of the tibble generated by   | 
instrumental | 
 (boolean) Include the Cowtan & Way instrumental temperatures through 2017. Defaults to TRUE.  | 
filtered | 
 (boolean) Use the filtered temperatures provided by PAGES2k Consortium. Temperatures filtered using a 31-year Butterworth filter. Defaults to TRUE.  | 
print | 
 (boolean) Display temperature anomaly ggplot2 chart, defaults to TRUE. Use FALSE to not display chart.  | 
plot_temp2k invisibly returns a ggplot2 object with a pre-defined temperature anomaly chart using data from get_temp2k.
By default the chart is also displayed. Users may further modify the output ggplot2 chart.
Invisibly returns a ggplot2 object with temperature anomaly chart
Hernando Cortina, hch@alum.mit.edu
# Fetch temperature anomaly:
anomaly <- get_temp2k()
#
# Plot output using package's built-in ggplot2 defaults
plot_temp2k(anomaly)
# Or just call plot_temp2k(), which defaults to get_temp2k() dataset
plot_temp2k()
p <- plot_temp2k(anomaly, print = FALSE)
# Modify plot such as: p + ggplot2::labs(title='Temperature Increase in the Common Era') 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.