Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy the docs for the colour / color functions #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions R/scale_colour_continuous_phs.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ scale_colour_continuous_phs <- function(..., type = "seq", palette = 1,
}

#' @rdname scale_colour_continuous_phs
#' @examples
#' ggplot2::qplot(mpg, wt, data = mtcars, colour = cyl) +
#' scale_color_continuous_phs(palette = "main-purples")
#' @usage NULL
#' @export
scale_color_continuous_phs <- scale_colour_continuous_phs
6 changes: 1 addition & 5 deletions R/scale_colour_discrete_phs.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ scale_colour_discrete_phs <- function(..., type = "seq", palette = 1,
}

#' @rdname scale_colour_discrete_phs
#' @examples
#' df <- mtcars
#' df[,'cyl'] <- as.factor(df[,'cyl'])
#' ggplot2::qplot(mpg, wt, data = df, colour = cyl) +
#' scale_color_discrete_phs(palette = "main")
#' @usage NULL
#' @export
scale_color_discrete_phs <- scale_colour_discrete_phs