theme_piss: Homogeneous theme for ggplots

Description Usage Arguments Details Value Author(s) Examples

Description

Theme function for our builded ggplots. Useful get coherent and similar colours, themes,... for all plots. Also useful to decrease the number of lines of code.

Usage

1
2
theme_piss(size_p = 18, size_c = 14, size_l = 12, theme = theme_bw(),
  ...)

Arguments

size_p

Size of the plot's title.

size_c

Size of the axis' title.

size_l

Size of the legend's title.

theme

ggplot's theme for the plot.

...

enables to add other theme's specifications for the plots, see http://ggplot2.tidyverse.org/reference/theme.html

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

A personalized ggplot2 theme object to add to every builded plots.

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.