Skip to content
Newer
Older
100644 77 lines (62 sloc) 2.65 KB
4be9970 @hadley Update for/with latest version of roxygen
authored Jul 14, 2011
1 \name{continuous_scale}
2 \alias{continuous_scale}
3 \title{Continuous scale constructor.}
4 \usage{
b4c112e @hadley Roxygen 2.2
authored Nov 30, 2011
5 continuous_scale(aesthetics, scale_name, palette,
2e4a093 @hadley Re-roxygenise
authored Feb 21, 2012
6 name = NULL, breaks = waiver(),
7 minor_breaks = waiver(), labels = waiver(),
8 legend = NULL, limits = NULL, rescaler = rescale,
404f72f @wch Change na.value for continous scale to NA_real_. Fixes #627
wch authored Jul 18, 2012
9 oob = censor, expand = waiver(), na.value = NA_real_,
2e4a093 @hadley Re-roxygenise
authored Feb 21, 2012
10 trans = "identity", guide = "legend")
4be9970 @hadley Update for/with latest version of roxygen
authored Jul 14, 2011
11 }
12 \arguments{
cfdc26a @wch Re-roxygenize
wch authored Jun 28, 2012
13 \item{minor_breaks}{Used with date or datetime scales.
14 Either \code{NULL} for no minor breaks, \code{waiver()}
15 for the default breaks (one minor break between each
16 major break), a numeric vector of positions, or a
17 function that given the limits returns a vector of minor
18 breaks.}
f81764b @hadley Improve trans documentation
authored Mar 9, 2012
19
cfdc26a @wch Re-roxygenize
wch authored Jun 28, 2012
20 \item{limits}{A numeric vector of length two describing
21 the scale limits.}
22
23 \item{rescaler}{Used by diverging and n colour gradients
24 (i.e. \code{\link{scale_colour_gradient2}},
25 \code{\link{scale_colour_gradientn}}).}
26
27 \item{oob}{What to do with values outside scale limits
28 (out of bounds)?}
29
30 \item{aesthetics}{the names of the aesthetics that this
31 scale works with}
32
33 \item{scale_name}{the name of the scale}
34
35 \item{palette}{a palette function that when called with a
36 single integer argument (the number of levels in the
37 scale) returns the values that they should take}
38
39 \item{name}{the name of the scale - used as the axis
40 label or the legend title}
41
42 \item{breaks}{control the breaks in the guide. There are
43 four possible types of input: \itemize{ \item
44 \code{NULL}: don't display any breaks \item a character
45 vector giving the breaks as they should appear on the
46 axis or in the legend. \item \code{waiver()} to use the
47 default break computation. \item a function, that when
48 called with a single argument, a character vector giving
49 the limits of the scale, returns a character vector
50 specifying which breaks to display. } This parameter
51 does not affect in any way how the data is scaled - it
52 only affects the appearance of the legend.}
53
54 \item{labels}{\code{NULL} for no labels, \code{waiver()}
55 for default labels (labels the same as breaks), a
56 character vector the same length as breaks, or a named
57 character vector whose names are used to match
58 replacement the labels for matching breaks.}
59
60 \item{legend}{deprecated. Use \code{guide} instead.}
61
62 \item{expand}{a numeric vector of length two, giving a
63 multiplicative and additive constant used to expand the
64 range of the scales so that there is a small gap between
65 the data and the axes.}
66
67 \item{na.value}{how should missing values be displayed?}
68
69 \item{guide}{the name of, or actual function, used to
70 create the guide.}
4be9970 @hadley Update for/with latest version of roxygen
authored Jul 14, 2011
71 }
72 \description{
73 Continuous scale constructor.
74 }
75 \keyword{internal}
76
Something went wrong with that request. Please try again.