# Plot at Zaragoza, with linear weights and error bar as RIs aesthetic
N.plot(ZaragozaSeries, weights = function(t) t-1, conf.aes = "errorbar")
# Plot only upper records
N.plot(ZaragozaSeries, record = c(1, 0, 1, 0))
# Change point colour and shape
Zplot <- N.plot(ZaragozaSeries,
point.col = c("red", "red", "blue", "blue"),
point.shape = c(19, 4, 19, 4))
## Not run: Load package ggplot2 to change the plot
#library("ggplot2")
## Remove legend
#Zplot + ggplot2::theme(legend.position = "none")
## Fancy axis
# Zplot +
# ggplot2::scale_x_continuous(name = "Year (forward)",
# breaks = c(10, 30, 50, 70),
# labels=c("1960", "1980", "2000", "2020"),
# sec.axis = ggplot2::sec_axis(~ 2021 - ., name = "Year (backward)",
# breaks = 1950 + c(10, 30, 50, 70))) +
# ggplot2::theme(axis.title.x = ggplot2::element_text(colour = "red"),
# axis.text.x = ggplot2::element_text(colour = "red"),
# axis.title.x.top = ggplot2::element_text(colour = "blue"),
# axis.text.x.top = ggplot2::element_text(colour = "blue"))
Run the code above in your browser using DataLab