Skip to content

Commit

Permalink
changed 'x' parameter to 'xintercept'
Browse files Browse the repository at this point in the history
to help with the more stringent ggplot2 checking.
  • Loading branch information
wibeasley committed Nov 11, 2015
1 parent 57f6478 commit 1e3543a
Show file tree
Hide file tree
Showing 17 changed files with 67 additions and 81 deletions.
Binary file modified DocumentationPeek.pdf
Binary file not shown.
18 changes: 9 additions & 9 deletions R/CartesianPeriodic.R
Expand Up @@ -33,25 +33,25 @@
##' @keywords Cartesian
##' @examples
##' library(Wats) #Load the package
##' changeMonth <- base::as.Date("1996-02-15")
##' changeMonth <- base::as.Date("1996-02-15")
##' dsLinear <- CountyMonthBirthRate2005Version
##' dsLinear <- dsLinear[dsLinear$CountyName=="oklahoma", ]
##' dsLinear <- AugmentYearDataWithMonthResolution(dsLinear=dsLinear, dateName="Date")
##' hSpread <- function( scores ) { return( quantile(x=scores, probs=c(.25, .75)) ) }
##' portfolio <- AnnotateData(
##' dsLinear,
##' dsLinear,
##' dvName = "BirthRate",
##' centerFunction = median,
##' centerFunction = median,
##' spreadFunction = hSpread
##' )
##'
##' CartesianPeriodic(
##' portfolio$dsLinear,
##' portfolio$dsPeriodic,
##' xName = "Date",
##' portfolio$dsLinear,
##' portfolio$dsPeriodic,
##' xName = "Date",
##' yName = "BirthRate",
##' stageIDName = "StageID",
##' changePoints = changeMonth,
##' stageIDName = "StageID",
##' changePoints = changeMonth,
##' changePointLabels = "Bombing Effect"
##' )

Expand Down Expand Up @@ -107,7 +107,7 @@ CartesianPeriodic <- function(dsLinear, dsPeriodic,

if( !is.null(changePoints) ) {
for( i in seq_along(changePoints) ) {
p <- p + ggplot2::geom_vline(x=as.integer(changePoints[i]), color=paletteLight[i+1], alpha=changeLineAlpha, size=changeLineSize)
p <- p + ggplot2::geom_vline(xintercept=as.integer(changePoints[i]), color=paletteLight[i+1], alpha=changeLineAlpha, size=changeLineSize)
p <- p + ggplot2::annotate("text", x=changePoints[i], y=Inf, vjust=1.1, color=paletteLight[i+1], label=changePointLabels[i])
}
}
Expand Down
2 changes: 1 addition & 1 deletion R/CartesianRolling.R
Expand Up @@ -107,7 +107,7 @@ CartesianRolling <- function(dsLinear, xName, yName, stageIDName,

if( !is.null(changePoints) ) {
for( i in seq_along(changePoints) ) {
p <- p + ggplot2::geom_vline(x=as.integer(changePoints[i]), color=paletteLight[i+1], alpha=changeLineAlpha, size=changeLineSize)
p <- p + ggplot2::geom_vline(xintercept=as.integer(changePoints[i]), color=paletteLight[i+1], alpha=changeLineAlpha, size=changeLineSize)
p <- p + ggplot2::annotate("text", x=changePoints[i], y=Inf, vjust=1.1, color=paletteLight[i+1], label=changePointLabels[i])
}
}
Expand Down
53 changes: 22 additions & 31 deletions inst/doc/MbrFigures.html

Large diffs are not rendered by default.

59 changes: 27 additions & 32 deletions inst/doc/OkFertilityWithIntercensalEstimates.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions man/CartesianPeriodic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified vignettes/figure_mbr_rmd/Figure2IndividualBasic-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/figure_mbr_rmd/Figure2Stylized-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/figure_mbr_rmd/Figure4Basic-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/figure_mbr_rmd/Figure4Stylized-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/figure_mbr_rmd/Figure6-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/figure_mbr_rmd/Figure7-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/figure_mbr_rmd/Figure7AllCounties-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/figure_mbr_rmd/Figure8-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/figure_okc_fertility_intercensal_rmd/PolarPeriodic-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1e3543a

Please sign in to comment.