solar.cycle: Solar cycles on ggplots

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
solar.cycle(col = 3, size = 0.3)

Arguments

col

choose color for the vertical lines

size

choose size for the lines

Details

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.

Value

vertical lines plotted on ggplots showing the solar cycles

Author(s)

Antoine Pissoort, antoine.pissoort@student.uclouvain.be

Examples

 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()

proto4426/ValUSunSSN documentation built on May 26, 2019, 10:31 a.m.