Description Usage Arguments Details Value Author(s) Examples
Function to plot vertical lines for adding to ggplots, which correspond to the solar cycles. Dates found for the solar Cycles comes from https://en.wikipedia.org/wiki/List_of_solar_cycles
1 | solar.cycle(col = 3, size = 0.3)
|
col |
choose color for the vertical lines |
size |
choose size for the lines |
This function is useful to decrease the amount of code for each ggplots
generated as this thesis will use exclusive ggplot2
for the plots.
Values of other parameters such as colours could be changed inside the function.
vertical lines plotted on ggplots showing the solar cycles
Antoine Pissoort, antoine.pissoort@student.uclouvain.be
1 2 3 4 5 6 7 8 9 10 11 | df_uccle_vero <- data.frame(time = z1$Date[1:nrow(filledt.vero)], SSN_wnUC2 = filledt.vero$UC2, from = "Vero")
df_uccle_c <- rbind.data.frame(df_uccle_vero, data.frame(time = z1$Date[1:nrow(df_uccle_vero)],
SSN_wnUC2 = zssn[,"wnUC2"][1:nrow(df_uccle_vero)], from = "`interpolEM`"))
ggplot(df_uccle_c, aes(col = from)) +
geom_point(aes(x = time, y = SSN_wnUC2), size = 0.15) +
solar.cycle() +
guides(colour = guide_legend(override.aes = list(size= 3))) +
ggtitle("Filled missing values") +
theme_piss()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.