Skip to content

Commit

Permalink
submission release
Browse files Browse the repository at this point in the history
  • Loading branch information
yonicd committed Feb 27, 2024
1 parent d8bf8df commit 9c5f158
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 54 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Miscellaneous
NEWS.Rmd
NEWS_files/*
README_files/*
tests/*
docs
man-roxygen
Expand All @@ -11,3 +12,4 @@ man-roxygen
^data-raw$
^cran-comments\.md$
^\.vscode$
^CRAN-SUBMISSION$
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ READMEOLD.md
Miscellaneous/docs
Miscellaneous/.DS_Store
.vscode
NEWS_files
README_files
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 0.4.0
Date: 2024-02-26 16:35:08 UTC
SHA: d8bf8df2b574a864bde78fb62d4662c0cd57ba0f
9 changes: 8 additions & 1 deletion NEWS.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ r <- getOption("repos")
options(repos = r)
```

# 0.4.0
## Update
Refactor functions to align with `ggplot2` version (3.5.0).

- Replace plyr with purrr dependency
- Update faceting cloning to support new formals in `ggplot2`

# 0.2.6
## Update
Collapse internal files to run the module and gadget from same base script.
Expand Down Expand Up @@ -67,7 +74,7 @@ ggedit_opts$get('session_geoms')
```

manipulate gg_extension pacakges (still in development, but works for a lot of the [ggplot2 extension packages](http://www.ggplot2-exts.org/))
manipulate gg_extension pacakges (still in development, but works for a lot of the [ggplot2 extension packages](https://ggplot2-exts.org/))

**dput.ggedit** returns dput for ggplot2 object in script form and not a structure.

Expand Down
66 changes: 38 additions & 28 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
NEWS
================

- [0.2.6](#section)
- [Update](#update)
- [Add](#add)
- [0.2.2](#section-1)
- [Update](#update-1)
- [Add](#add-1)
# 0.4.0

0.2.6
=====
## Update

Update
------
Refactor functions to align with `ggplot2` version (3.5.0).

Collapse internal files to run the module and gadget from same base script.
- Replace plyr with purrr dependency
- Update faceting cloning to support new formals in `ggplot2`

# 0.2.6

## Update

Collapse internal files to run the module and gadget from same base
script.

Reorganize BS Modals to have columns by object type.

Change plot.ggedit be a print.ggedit method.

`shinyBS` js library dependencies loaded with package, this lets ggedit run on attachment. i.e. `ggedit::ggedit(p)`
`shinyBS` js library dependencies loaded with package, this lets ggedit
run on attachment. i.e. `ggedit::ggedit(p)`

Add
---
## Add

**margins** can be edited in the theme UI

`+.gg` functionality added to *gglist* class to manipulate to multiple plots in layout
`+.gg` functionality added to *gglist* class to manipulate to multiple
plots in layout

``` r
as.gglist(list(pList[[1]],pList[[3]])) +
Expand All @@ -36,19 +38,26 @@ as.gglist(list(pList[[1]],pList[[3]])) +
theme(legend.position = 'top')
```

**gg\_session** retreives all functions that create ggroto layers or stats in current loaded namespace and returns unique mapping to their `position`,`geom`,`stat`.
**gg\_session** retreives all functions that create ggroto layers or
stats in current loaded namespace and returns unique mapping to their
`position`,`geom`,`stat`.

``` r
gg_session()
```

**gg\_vetting** returns the columns from gg\_session relevant to a compiled plot
**gg\_vetting** returns the columns from gg\_session relevant to a
compiled plot

``` r
gg_vetting(pList$pointSmooth)
```

**ggedit\_opts** functionality to control session levels options (like `knitr::opts_chunk`). This can be used to manipulate the package defaults like the theme tips seen in BS modals. It is also used to store an updated output of gg\_session, so ggedit can identify the correct mapping with gg\_extension pacakges (eg `ggalt`).
**ggedit\_opts** functionality to control session levels options (like
`knitr::opts_chunk`). This can be used to manipulate the package
defaults like the theme tips seen in BS modals. It is also used to store
an updated output of gg\_session, so ggedit can identify the correct
mapping with gg\_extension pacakges (eg `ggalt`).

``` r
library(ggalt)
Expand All @@ -58,9 +67,11 @@ ggedit_opts$set(list(session_geoms=gg_session()))
ggedit_opts$get('session_geoms')
```

manipulate gg\_extension pacakges (still in development, but works for a lot of the [ggplot2 extension packages](http://www.ggplot2-exts.org/))
manipulate gg\_extension pacakges (still in development, but works for a
lot of the [ggplot2 extension packages](https://ggplot2-exts.org/))

**dput.ggedit** returns dput for ggplot2 object in script form and not a structure.
**dput.ggedit** returns dput for ggplot2 object in script form and not a
structure.

``` r
pList$pointSmooth #original compiled plot
Expand All @@ -69,7 +80,8 @@ writeLines(this.gg) #show the output
eval(parse(text=this.gg)) #recompile the plot
```

**summary.ggedit** method for ggedit class return script that created compiled gg object.
**summary.ggedit** method for ggedit class return script that created
compiled gg object.

``` r
out <- ggedit(pList[1:2])
Expand All @@ -86,16 +98,14 @@ summary(out)
# facet_wrap(facets=~Species,shrink=TRUE)
```

0.2.2
=====
# 0.2.2

Update
------
## Update

- Change `mutate_each` with `mutate_all` to be compatible with new `dplyr` release
- Change `mutate_each` with `mutate_all` to be compatible with new
`dplyr` release

Add
---
## Add

- 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
Expand Down
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/ggedit)](https://cran.r-project.org/package=ggedit)
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/0.1.0/active.svg)](http://www.repostatus.org/#active)
![downloads](http://cranlogs.r-pkg.org/badges/ggedit)[![Travis-CI Build Status](https://travis-ci.org/yonicd/ggedit.svg?branch=master)](https://travis-ci.org/yonicd/ggedit)
[![Coverage Status](https://img.shields.io/codecov/c/github/yonicd/ggedit/master.svg)](https://codecov.io/github/yonicd/ggedit?branch=master)[![Covrpage Summary](https://img.shields.io/badge/covrpage-Last_Build_2020_06_01-yellowgreen.svg)](https://github.com/yonicd/ggedit/tree/master/tests/README.md)
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/0.1.0/active.svg)](https://www.repostatus.org/#active)
![downloads](https://cranlogs.r-pkg.org/badges/ggedit)[![Coverage Status](https://img.shields.io/codecov/c/github/yonicd/ggedit/master.svg)](https://app.codecov.io/github/yonicd/ggedit?branch=master)[![Covrpage Summary](https://img.shields.io/badge/covrpage-Last_Build_2020_06_01-yellowgreen.svg)](https://github.com/yonicd/ggedit/blob/master/tests/README.md)

# ggedit

ggplot2 has become the standard of plotting in R for many users. New users, however, may find the learning curve steep at first, and more experienced users may find it challenging to keep track of all the options (especially in the theme!).
Expand All @@ -17,9 +17,9 @@ A gitbook is maintained as the user manual for the package, you can access it he
https://yonicd.github.io/ggedit/


Short clip from [rstudio::conf 2017](https://rstudio.com/resources/rstudioconf-2017/lightning-talks-users) (13:35-19:35)
Short clip from [rstudio::conf 2017](https://posit.co/resources/videos/lightning-talks-users/) (13:35-19:35)

<p><a href="https://rstudio.com/resources/rstudioconf-2017/lightning-talks-users/?wvideo=64h36ke5ph"><img src="https://embed-fastly.wistia.com/deliveries/74f86de85f430b9ad819c3c5b04fc637.jpg?image_play_button_size=2x&amp;image_crop_resized=960x540&amp;image_play_button=1&amp;image_play_button_color=71aadbe0" style="width: 400px; height: 225px;" width="400" height="225"></a></p><p><a href="https://rstudio.com/resources/rstudioconf-2017/lightning-talks-users/?wvideo=64h36ke5ph">Lightning Talks - Users - RStudio</a></p>
<p><a href="https://posit.co/resources/videos/lightning-talks-users/?wvideo=64h36ke5ph"><img src="https://embed-fastly.wistia.com/deliveries/74f86de85f430b9ad819c3c5b04fc637.jpg?image_play_button_size=2x&amp;image_crop_resized=960x540&amp;image_play_button=1&amp;image_play_button_color=71aadbe0" style="width: 400px; height: 225px;" width="400" height="225"></a></p><p><a href="https://posit.co/resources/videos/lightning-talks-users/?wvideo=64h36ke5ph">Lightning Talks - Users - RStudio</a></p>


## Installation
Expand Down Expand Up @@ -49,5 +49,11 @@ remotes::install_github("yonicd/ggedit")
## 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

```
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
18 changes: 0 additions & 18 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
## Test environments
* local OS X install, R 3.5.0
* ubuntu 12.04 (on travis-ci), R 3.5.0
* win-builder (devel and release)

## R CMD check results

0 errors | 0 warnings | 1 note

* This is a new release.

## Reverse dependencies

This is a new release, so there are no reverse dependencies.

---

* I have run R CMD check on the NUMBER downstream dependencies.
(Summary at ...).

* FAILURE SUMMARY

* All revdep maintainers were notified of the release on RELEASE DATE.

0 comments on commit 9c5f158

Please sign in to comment.