Skip to content

Commit bd850b1

Browse files
Preparing for CRAN submission
- Remove grid version to address binary build failure on OSX - Remove unused strip.position parameter from facet_wrap - Update version numbers, README, NEWS
1 parent 1c617e5 commit bd850b1

7 files changed

Lines changed: 37 additions & 21 deletions

File tree

DESCRIPTION

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: plotluck
22
Title: 'ggplot2' Version of "I'm Feeling Lucky!"
3-
Version: 1.0.0.9000
3+
Version: 1.1.0
44
Authors@R: person("Stefan", "Schroedl", , "stefan.schroedl@gmx.de", c("aut", "cre"))
55
Description: Examines the characteristics of a data frame and a formula to
66
automatically choose the most suitable type of plot out of the following supported
@@ -11,16 +11,16 @@ Description: Examines the characteristics of a data frame and a formula to
1111
factor levels, and overlaying smoothing curves and median lines. Plots are
1212
drawn using 'ggplot2'.
1313
Depends:
14-
R (>= 3.3.1)
14+
R (>= 3.1)
1515
Imports:
16-
ggplot2 (>= 2.1.0),
16+
grid,
1717
Hmisc (>= 3.17.4),
1818
quantreg (>= 5.26),
19-
scales (>= 0.4.0),
19+
scales (>= 0.4.1),
2020
plyr (>= 1.8.4),
21-
grid (>= 3.3.1),
2221
hexbin (>= 1.27.1),
23-
RColorBrewer (>= 1.1.2)
22+
RColorBrewer (>= 1.1.2),
23+
ggplot2 (>= 2.2.0)
2424
License: MIT + file LICENSE
2525
URL: https://github.com/stefan-schroedl/plotluck
2626
BugReports: https://github.com/stefan-schroedl/plotluck/issues

NEWS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
# plotluck 1.0.0
1+
# plotluck 1.1.0
2+
* Compatibility with ggplot 2.2.0
3+
* Swap order of data and formula arguments, as requested
24

5+
# plotluck 1.0.0 (2016-09-22)
6+
* First CRAN release
37
* Compatibility with ggplot 2.1.0
48
* Changed _plotluck()_ arguments to use a formula instead of arguments _x,y,z_
59
* Removed _plotluck.multi()_ from being public - functionality can now be accessed using dot symbol _'.'_ in plotluck formula

R/plotluck.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ discretize.few.unique <- function(data, x, few.unique.as.factor=5, verbose=FALSE
467467
return(data)
468468
}
469469
non.na <- !is.na(data[[x]])
470+
# works for both data frames and tibbles
470471
u <- nrow(unique(data[non.na,x,drop=FALSE]))
471472

472473
if (u <= few.unique.as.factor &&
@@ -2722,22 +2723,19 @@ format.facets <- function(data, x, show.var='first') {
27222723
add.facet.wrap <- function(p, data, cond, preferred.order, opts) {
27232724
nrow <- NULL
27242725
ncol <- NULL
2725-
strip.position <- NULL
27262726
show.var <- 'first'
27272727
if (preferred.order == 'row') {
27282728
ncol <- opts$facet.max.cols
2729-
strip.position <- 'bottom'
27302729
} else if (preferred.order == 'col') {
27312730
nrow <- opts$facet.max.rows
2732-
strip.position <- 'left'
27332731
show.var <- 'last'
27342732
}
27352733
facet.labels <- format.facets(data, cond, show.var)
27362734

27372735
p <- p + theme_slanted_text_x + # axis text might overlap in small diagrams
27382736
facet_wrap(cond,
27392737
labeller=as_labeller(facet.labels),
2740-
nrow=nrow, ncol=ncol, strip.position=strip.position) +
2738+
nrow=nrow, ncol=ncol) +
27412739
theme(panel.border=element_rect(fill=NA))
27422740
# known issue 1: always slanting text is not ideal, but no quick fix
27432741
# known issue 2: for it would be good to order vertical facets like axis

README-unnamed-chunk-2-1.png

1.52 KB
Loading

README.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Imagine you have given a new R data frame, and would like to get an overview of
3535

3636
```{r, fig.show='hold'}
3737
library(plotluck)
38-
data(diamonds,package='ggplot2')
39-
plotluck(price~cut+color, diamonds)
38+
data(diamonds, package='ggplot2')
39+
plotluck(diamonds, price~cut+color)
4040
```
4141

4242
## Features

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Imagine you have given a new R data frame, and would like to get an overview of
3030

3131
```r
3232
library(plotluck)
33-
data(diamonds,package='ggplot2')
34-
plotluck(price~cut+color, diamonds)
33+
data(diamonds, package='ggplot2')
34+
plotluck(diamonds, price~cut+color)
3535
```
3636

3737
![plot of chunk unnamed-chunk-2](README-unnamed-chunk-2-1.png)

cran-comments.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
## Resubmission
2-
This is a resubmission. In this version I have reformulated the DESCRIPTION
3-
according to the feedback (first sentence in active case, moved reference to ggplot2
4-
to the end).
2+
3+
Reduced size of tar.gz from 11M to 370K, as requested.
54

65
## Test environments
76
* local OS X install, R 3.3.1
87
* win-builder (devel and release)
98

109
## R CMD check results
11-
There were no ERRORs or WARNINGs.
10+
There were no ERRORs or WARNINGs, and 3 NOTES:
11+
12+
- License components with restrictions and base license permitting such:
13+
MIT + file LICENSE
14+
File 'LICENSE':
15+
YEAR: 2014
16+
COPYRIGHT HOLDER: Stefan Schroedl
17+
18+
- running examples for arch 'i386' ... [19s]
19+
Examples with CPU or elapsed time > 10s
20+
user system elapsed
21+
plotluck 15.29 0.19 15.66
22+
- running examples for arch 'x64' ... [26s]
23+
Examples with CPU or elapsed time > 10s
24+
user system elapsed
25+
plotluck 20.95 0.25 21.32
1226

13-
There was 1 NOTE:
14-
New submission
27+
I have not changed the examples from last submission, and I don't get these
28+
notes locally. I am assuming the win-builder server is busy.

0 commit comments

Comments
 (0)