diff --git a/DESCRIPTION b/DESCRIPTION index 36383f2..cb0a87b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -8,7 +8,7 @@ Maintainer: Jonathan Sidi Description: Interactively edit 'ggplot2' layer and theme aesthetics definitions. Depends: R (>= 3.2.0), - ggplot2 + ggplot2 (>= 3.0.0) Imports: dplyr (>= 0.7.5), plyr, @@ -31,7 +31,6 @@ Imports: Suggests: testthat, covr -Remotes: tidyverse/ggplot2 License: MIT + file LICENSE URL: https://github.com/metrumresearchgroup/ggedit BugReports: https://github.com/metrumresearchgroup/ggedit/issues diff --git a/Miscellaneous/ggedit_0.2.6.tar.gz b/Miscellaneous/Old sources/ggedit_0.2.6.tar.gz similarity index 100% rename from Miscellaneous/ggedit_0.2.6.tar.gz rename to Miscellaneous/Old sources/ggedit_0.2.6.tar.gz diff --git a/Miscellaneous/ggedit_0.3.0.tar.gz b/Miscellaneous/ggedit_0.3.0.tar.gz new file mode 100644 index 0000000..6bbafcf Binary files /dev/null and b/Miscellaneous/ggedit_0.3.0.tar.gz differ diff --git a/README.md b/README.md index b9080a8..7339663 100644 --- a/README.md +++ b/README.md @@ -44,42 +44,8 @@ plot(p2) # shows the updated plot (it is available in the first element of p2) devtools::install_github("metrumresearchgroup/ggedit") ``` -#### DEV updates [ggedit_0.2.2](https://github.com/metrumresearchgroup/ggedit/blob/master/Miscellaneous/ggedit_0.2.2.tar.gz) - - - replaced `mutate_each` with `mutate_all` to be compatible with new `dplyr` release - - - functionality added - - can pass functions into stat_summary, eg `stat_summary(fun.y=mean_sd, geom='point')` - - data.frames in layers are embedded as structures in verbose outputs, e.g. `geom_point(data=mtcars, aes(cyl, mpg))` will return - ```r - [1] "geom_point(mapping=aes(x=cyl,y=mpg), data=structure(list(mpg = c(21, 21, 22.8, 21.4, 18.7, 18.1, 14.3, \n24.4, 22.8, 19.2, 17.8, 16.4, 17.3, 15.2, 10.4, 10.4, 14.7, 32.4,.. - ``` - - aesthetic can be set to NULL, ie aes(group=NULL) - -example plot - -```r -plot <- - iris%>% - ggplot(aes(x=cut(Sepal.Width,2),y=Sepal.Width)) + - aes(colour=Species,group=Species)+ - geom_point(alpha = 0.5,shape = 16, size = 1) + - geom_boxplot(aes(group=NULL), varwidth = FALSE,notch = FALSE, show.legend = TRUE)+ - stat_summary(fun.y = 'median', geom = "line")+ - theme_bw(base_size = 16) + - theme(legend.position = "bottom", - legend.box = "vertical", legend.direction = "horizontal", - axis.text.x = ggplot2::element_text(angle = 90,hjust = 1, vjust = 0.5), - legend.title = element_blank()) - -ggedit(plot) -``` - - ## Limitations - layers - non colour aesthetics of numeric inputs are not currently supported, e.g.: `iris%>%ggplot(aes(x=Sepal.Length,y=Sepal.Width))+geom_point()+geom_text(aes(label=Species,size=Sepal.Length))` - geom_text: family is not currently open to change - - theme - - arrow objects are not currently available to edit