Skip to content

Commit

Permalink
theme_classic2 removed #217
Browse files Browse the repository at this point in the history
  • Loading branch information
kassambara committed Jun 7, 2017
1 parent c6ce3cc commit c538f36
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 29 deletions.
2 changes: 1 addition & 1 deletion R/ggcoxadjustedcurves.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ NULL
#'@param individual.curves if TRUE then all individual predicted survival curves will be plotted
#'@param curve.size,curve.alpha size and alpha for individual survival curves
#'@param ylab y axis label.
#'@param ggtheme function, ggplot2 theme name. Default value is \link{theme_classic2}.
#'@param ggtheme function, ggplot2 theme name.
#' Allowed values include ggplot2 official themes: see \code{\link[ggplot2]{theme}}.
#'@inheritParams ggpubr::ggpar
#'@param ... further arguments passed to the function \code{\link[ggpubr]{ggpar}} for customizing the plot.
Expand Down
2 changes: 1 addition & 1 deletion R/ggcoxfunctional.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ NULL
#'@param title the title of the final \link{grob} (\code{top} in \link{arrangeGrob})
#'@param caption the caption of the final \link{grob} (\code{bottom} in \link{arrangeGrob})
#'@param point.col,point.size,point.shape,point.alpha color, size, shape and visibility to be used for points.
#'@param ggtheme function, ggplot2 theme name. Default value is \link{theme_classic2}.
#'@param ggtheme function, ggplot2 theme name.
#' Allowed values include ggplot2 official themes: see \code{\link[ggplot2]{theme}}.
#'@param ... further arguments passed to the function \code{\link[ggpubr]{ggpar}} for customizing the plot.
#'@return Returns an object of class \code{ggcoxfunctional} which is a list of ggplots.
Expand Down
2 changes: 1 addition & 1 deletion R/ggcoxzph.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' are produced in turn for each variable of a model.
#'@param point.col,point.size,point.shape,point.alpha color, size, shape and visibility to be used for points.
#'@param caption the caption of the final \link{grob} (\code{bottom} in \link{arrangeGrob})
#'@param ggtheme function, ggplot2 theme name. Default value is \link{theme_classic2}.
#'@param ggtheme function, ggplot2 theme name.
#' Allowed values include ggplot2 official themes: see \code{\link[ggplot2]{theme}}.
#'@param ... further arguments passed to either the print() function or to the \code{\link[ggpubr]{ggpar}} function for customizing the plot (see Details section).
#'@details \strong{Customizing the plots}: The plot can be easily
Expand Down
2 changes: 1 addition & 1 deletion R/ggsurvevents.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' @param data a dataset for predictions. If not supplied then data will be extracted from `fit` object.
#' @param type one of \code{c("cumulative", "radius", "fraction")}. \code{"cumulative"} stands for cumulative number of events, \code{"radius"} stands for number of events within a given radius,
#' @param normalized if \code{TRUE} relative number of events is presented,
#' @param ggtheme function, ggplot2 theme name. Default value is theme_classic2. Allowed values include ggplot2 official themes: see theme.
#' @param ggtheme function, ggplot2 theme name. Allowed values include ggplot2 official themes: see theme.
#' @param censored.on.top is TRUE then censored events are on the top
#' @param palette the color palette to be used for coloring of significant variables.
#' @param ... other graphical parameters to be passed to the function \link[ggpubr]{ggpar}.
Expand Down
6 changes: 3 additions & 3 deletions R/surv_cutpoint.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ print.surv_cutpoint <- function(x, ...){


#' @param ggtheme function, ggplot2 theme name. Default value is
#' \link{theme_classic2}. Allowed values include ggplot2 official themes. see
#' \link{theme_classic}. Allowed values include ggplot2 official themes. see
#' ?ggplot2::ggtheme.
#' @param bins Number of bins for histogram. Defaults to 30.
#' @method plot surv_cutpoint
#' @rdname surv_cutpoint
#' @export
plot.surv_cutpoint <- function(x, variables = NULL, ggtheme = theme_classic2(), bins = 30, ...)
plot.surv_cutpoint <- function(x, variables = NULL, ggtheme = theme_classic(), bins = 30, ...)
{

if(!inherits(x, "surv_cutpoint"))
Expand Down Expand Up @@ -271,7 +271,7 @@ print.plot_surv_cutpoint <- function(x, ..., newpage = TRUE){
# Helper function
# %%%%%%%%%%%%%%%%%%%%%

.ggpar <- function(p, ggtheme = theme_classic2(),...){
.ggpar <- function(p, ggtheme = theme_classic(),...){
argmt <- list(...)
p <- ggpubr::ggpar(p, ggtheme = ggtheme,...)
if(is.null(argmt$font.x)) p <- p + theme(axis.text.x = element_text(face = "plain"))
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/ggcoxadjustedcurves.html

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

2 changes: 1 addition & 1 deletion docs/reference/ggcoxfunctional.html

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

2 changes: 1 addition & 1 deletion docs/reference/ggcoxzph.html

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

2 changes: 1 addition & 1 deletion docs/reference/ggsurvevents.html

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

Binary file added docs/reference/ggsurvplot_list-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions docs/reference/ggsurvplot_list.html

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

5 changes: 0 additions & 5 deletions docs/reference/index.html

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

Binary file modified docs/reference/surv_cutpoint-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/reference/surv_cutpoint.html

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

2 changes: 1 addition & 1 deletion man/ggcoxadjustedcurves.Rd

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

2 changes: 1 addition & 1 deletion man/ggcoxfunctional.Rd

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

2 changes: 1 addition & 1 deletion man/ggcoxzph.Rd

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

2 changes: 1 addition & 1 deletion man/ggsurvevents.Rd

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

6 changes: 3 additions & 3 deletions man/surv_cutpoint.Rd

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

0 comments on commit c538f36

Please sign in to comment.