diff --git a/DESCRIPTION b/DESCRIPTION index 7261c85..80749f2 100644 --- a/DESCRIPTION +++ b/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 diff --git a/R/coord_proj.r b/R/coord_proj.r index 90e9205..be9eb6b 100644 --- a/R/coord_proj.r +++ b/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 } diff --git a/README.Rmd b/README.Rmd index 409bd1f..cc7049e 100644 --- a/README.Rmd +++ b/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 diff --git a/README.html b/README.html index 4d2ef2b..0e1c891 100644 --- a/README.html +++ b/README.html @@ -62,7 +62,7 @@ img { -

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Travis-CI Build Status CRAN_Status_Badge downloads

+

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Travis-CI Build Status CRAN_Status_Badge downloads

ggalt : Extra Coordinate Systems, Geoms and Statistical Transformations for ‘ggplot2’

A compendium of ‘geoms’, ‘coords’ and ‘stats’ for ‘ggplot2’, including splines, 1d and 2d densities, univariate average shifted histograms and a new map coordinate system based on the ‘PROJ.4’-library.

The first three forays into this brave, new ggplot2 world are splines! and being able to use the (much better) KernSmooth::bkde and KernSmooth::bkde2D for density plots and an initial port of the (still needing work) coord_proj.

@@ -80,13 +80,14 @@ img {

News

@@ -242,6 +243,10 @@ m + stat_bkde2d(bandwidth=c(0.5, 4), aes(fill = ..level..), geom = "polygon

coord_proj LIVES! (still needs work)

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()
@@ -249,7 +254,7 @@ gg <- gg + geom_map(data=world, map=world,
                     aes(x=long, y=lat, map_id=region))
 gg <- gg + coord_proj("+proj=wintri")
 gg
-

+

Code of Conduct

diff --git a/README.md b/README.md index c192bc9..0362782 100644 --- a/README.md +++ b/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() diff --git a/README_figs/README-coord_proj-1.png b/README_figs/README-coord_proj-1.png index 825b4cb..f16b8b4 100644 Binary files a/README_figs/README-coord_proj-1.png and b/README_figs/README-coord_proj-1.png differ