Browse Source

fixed bug in coord_proj limits

pull/3/head
Bob Rudis 8 years ago
parent
commit
90c7c141cc
  1. 2
      DESCRIPTION
  2. 2
      R/coord_proj.r
  3. 15
      README.Rmd
  4. 23
      README.html
  5. 19
      README.md
  6. BIN
      README_figs/README-coord_proj-1.png

2
DESCRIPTION

@ -1,6 +1,6 @@
Package: ggalt
Title: Extra Coordinate Systems, Geoms and Statistical Transformations for 'ggplot2'
Version: 0.1.1.9000
Version: 0.1.2.9000
Authors@R: c(person("Bob", "Rudis", email = "bob@rudis.net", role = c("aut", "cre")))
Description: A compendium of 'geoms', 'coords' and 'stats' for 'ggplot2',
including splines, 1d and 2d densities, univariate average shifted histograms

2
R/coord_proj.r

@ -132,7 +132,7 @@ CoordProj <- ggproto("CoordProj", Coord,
if (is.null(limits)) {
range <- scale$dimension(expand_default(scale))
} else {
range <- range(scale_transform(scale, limits))
range <- range(scale$transform(limits))
}
ranges[[n]] <- range
}

15
README.Rmd

@ -40,13 +40,14 @@ The following functions are implemented:
### News
- Version 0.1.1 released - CRAN!
- Version 0.1.0.9000 released - Tweaks for ggplot2 2.0 release
- Version 0.0.4.9000 released - `stat_ash`
- Version 0.0.3.9000 released - `coord_proj`! (requires my github copy of ggplot2 for now)
- Version 0.0.2.9005 released - cleanup before blog post
- Version 0.0.2.9002 released - working 2D density plots
- Version 0.0.2.9000 released
- Version 0.1.2.9000 - Fixed bug with limits not working thx to @mstrimas
- Version 0.1.1 - CRAN!
- Version 0.1.0.9000 - Tweaks for ggplot2 2.0 release
- Version 0.0.4.9000 - `stat_ash`
- Version 0.0.3.9000 - `coord_proj`! (requires my github copy of ggplot2 for now)
- Version 0.0.2.9005 - cleanup before blog post
- Version 0.0.2.9002 - working 2D density plots
- Version 0.0.2.9000 initial release
### Installation

23
README.html

File diff suppressed because one or more lines are too long

19
README.md

@ -26,13 +26,14 @@ The following functions are implemented:
### News
- Version 0.1.1 released - CRAN!
- Version 0.1.0.9000 released - Tweaks for ggplot2 2.0 release
- Version 0.0.4.9000 released - `stat_ash`
- Version 0.0.3.9000 released - `coord_proj`! (requires my github copy of ggplot2 for now)
- Version 0.0.2.9005 released - cleanup before blog post
- Version 0.0.2.9002 released - working 2D density plots
- Version 0.0.2.9000 released
- Version 0.1.2.9000 - Fixed bug with limits not working thx to @mstrimas
- Version 0.1.1 - CRAN!
- Version 0.1.0.9000 - Tweaks for ggplot2 2.0 release
- Version 0.0.4.9000 - `stat_ash`
- Version 0.0.3.9000 - `coord_proj`! (requires my github copy of ggplot2 for now)
- Version 0.0.2.9005 - cleanup before blog post
- Version 0.0.2.9002 - working 2D density plots
- Version 0.0.2.9000 initial release
### Installation
@ -269,6 +270,10 @@ m + stat_bkde2d(bandwidth=c(0.5, 4), aes(fill = ..level..), geom = "polygon")
```r
world <- map_data("world")
#>
#> # ATTENTION: maps v3.0 has an updated 'world' map. #
#> # Many country borders and names have changed since 1990. #
#> # Type '?world' or 'news(package="maps")'. See README_v3. #
world <- world[world$region != "Antarctica",]
gg <- ggplot()

BIN
README_figs/README-coord_proj-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 183 KiB

Loading…
Cancel
Save