Description Usage Arguments Author(s) Examples
This function helps you analyze global as well as countries average temperatures trend during a specified time period. You can use it to do comparison between countries. Also, you can analyze both yearly average temperature and monthly temperature trend.
1 2 |
data |
Dataset to use for plot. Use GlobalTemperatures or GlobalLandTemperaturesByCountry dataset to do analysis. |
type |
A vector giving which type of trend you want to plot. 1 indicates yearly trend. 2 indicates monthly trend. c(1,2) indicates both yearly and monthly average temperature trend. |
year |
A vector. Time period during which you want to analyze how the temperature changed. |
month |
A vector. You want to analyze the temperature trend in these months. |
country |
A vector of countries' name. Compare how the temperature changed in these countries during a specified time period. |
con |
Display confidence interval around smooth? (TRUE for confidence interval. FALSE by default) |
Annie Yang
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.