Skip to content

Documentation of palette parameter for continuous scales #2839

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

Closed
brodieG opened this issue Aug 18, 2018 · 1 comment
Closed

Documentation of palette parameter for continuous scales #2839

brodieG opened this issue Aug 18, 2018 · 1 comment

Comments

@brodieG
Copy link
Contributor

brodieG commented Aug 18, 2018

The documentation is incorrect:

continuous_scale            package:ggplot2            R Documentation

Continuous scale constructor.

Description:

     Continuous scale constructor.

Usage:

     continuous_scale(aesthetics, scale_name, palette, name = waiver(),
       breaks = waiver(), minor_breaks = waiver(), labels = waiver(),
       limits = NULL, rescaler = rescale, oob = censor, expand = waiver(),
       na.value = NA_real_, trans = "identity", guide = "legend",
       position = "left", super = ScaleContinuous)
     
Arguments:

aesthetics: The names of the aesthetics that this scale works with

scale_name: The name of the scale

 palette: A palette function that when called with a single integer
          argument (the number of levels in the scale) returns the
          values that they should take

This is the expected behavior of palette for discrete_scale. Currently continuous_scale and discrete_scale share the same documentation for this parameter. PR coming shortly.

@lock
Copy link

lock bot commented Feb 18, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Feb 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant