Skip to content

Commit 86ed191

Browse files
committed
Defaut AsIs columns to identity.
Fixes #1518
1 parent ec5b4d7 commit 86ed191

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ S3method(print,ggproto_method)
9595
S3method(print,rel)
9696
S3method(print,theme)
9797
S3method(print,uneval)
98+
S3method(scale_type,AsIs)
9899
S3method(scale_type,Date)
99100
S3method(scale_type,POSIXt)
100101
S3method(scale_type,character)

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ggplot2 2.0.0.9000
22

3+
* The default scale for columns of class "AsIs" is now "identity" (#1518).
4+
35
* `geom_boxplot()` now understands `outlier.color` (#1455).
46

57
* `geom_histgram(bins = n)` now gives a histogram with `n` bins, not `n + 1`

R/scales-.r

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ scale_type.default <- function(x) {
153153
"continuous"
154154
}
155155

156+
#' @export
157+
scale_type.AsIs <- function(x) "identity"
158+
156159
#' @export
157160
scale_type.logical <- function(x) "discrete"
158161

0 commit comments

Comments
 (0)