Skip to content

Commit

Permalink
Add accents and update new version description
Browse files Browse the repository at this point in the history
  • Loading branch information
mdfrias committed Oct 17, 2018
1 parent ab5e924 commit 09c36ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
* Minor doc updates

## v1.3.0 (17 oct 2018)
* New function `cascadePlot`
* New function `cascadePlot` to visualize the climate change modelling uncertainty cascade.

7 changes: 4 additions & 3 deletions R/cascadePlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@
#' @param density.reverse Logical (default = TRUE). If TRUE plot the PDF upside down.

#' @export
#' @importFrom grDevices rainbow
#' @importFrom graphics segments

#' @family visualization functions

#' @author J. Fernandez \email{jesus.fernandez@@unican.es} and M.D. Frias based on the
#' @author J. Fernández \email{jesus.fernandez@@unican.es} and M.D. Frías based on the
#' visualization proposed by Ed Hawkins on his Climate Lab Book http://www.climate-lab-book.ac.uk/2014/cascade-of-uncertainty
#'
#' @references Hawkins E. 2014. Climate Lab Book. http://www.climate-lab-book.ac.uk/2014/cascade-of-uncertainty
#' @references Fernandez, J., Frias, M.D., Cabos, W.D. et al. 2018. Consistency of climate change
#' @references Fernández, J., Frías, M.D., Cabos, W.D. et al. 2018. Consistency of climate change
#' projections from multiple global and regional model intercomparison projects. Clim Dyn. https://doi.org/10.1007/s00382-018-4181-8
#'
#' @examples \dontrun{
Expand All @@ -60,7 +62,6 @@
#' cascadePlot(sdeltas, factors, multimip.stages, title=title, density.offset=2)
#' }


cascadePlot <- function(x, factors, stages = NULL, labels = FALSE, label.names = NULL, colors=NULL, title = NULL, line.width = NULL, plot.density = TRUE, density.offset=0, density.reverse=TRUE){
if (is.null(stages)) {
stages <- names(factors)
Expand Down
3 changes: 2 additions & 1 deletion R/side.density.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
#' relative to the bottom part of the plot. Default is 0.
#' @param density.reverse Logical (default = FALSE). If TRUE plot the PDF upside down.
#' @details The function is intended for internal use only. The function adds the PDF to the cascade plot.
#' @author J. Fernandez and M.D. Frias
#' @author J. Fernández and M.D. Frías
#' @keywords internal
#' @importFrom stats density

side.density <- function(x, horiz=TRUE, col="black", scale=0.1, alpha=0.3,
shades = FALSE, prob=c(0.25,0.5,0.75), density.offset=0, density.reverse=FALSE)
Expand Down

0 comments on commit 09c36ce

Please sign in to comment.