# NOT RUN {
# Plot at Zaragoza, with linear weights and error bar as CIs 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 color 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 = "Forward (Year)",
# breaks = c(8, 28, 48, 68),
# labels=c("1960", "1980", "2000", "2020"),
# sec.axis = ggplot2::sec_axis(~ nrow(ZaragozaSeries) - . + 1953, name = "Backward (Year)")) +
# ggplot2::theme(axis.title.x = ggplot2::element_text(color = "red"),
# axis.text.x = ggplot2::element_text(color = "red"),
# axis.title.x.top = ggplot2::element_text(color = "blue"),
# axis.text.x.top = ggplot2::element_text(color = "blue"))
# }
Run the code above in your browser using DataLab