Skip to content

Commit 5bbaa1f

Browse files
committed
rename vignette
1 parent 315d27f commit 5bbaa1f

28 files changed

+23
-23
lines changed

Makefile

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
all: README.md
55

66
clean:
7-
Rscript -e 'suppressWarnings(file.remove("README.md", "vignettes/overview.md"))'
7+
Rscript -e 'suppressWarnings(file.remove("README.md", "vignettes/ggExtra.md"))'
88

99
.PHONY: all clean
1010
.DELETE_ON_ERROR:
1111
.SECONDARY:
1212

13-
README.md : vignettes/overview.Rmd
14-
# echo "Rendering the overview vignette"
15-
Rscript -e 'rmarkdown::render("vignettes/overview.Rmd", output_format = "md_document")'
13+
README.md : vignettes/ggExtra.Rmd
14+
# echo "Rendering the ggExtra vignette"
15+
Rscript -e 'rmarkdown::render("vignettes/ggExtra.Rmd", output_format = "md_document")'
1616
# echo "Correcting image paths"
17-
# sed -i -- 's,../inst,inst,g' vignettes/overview.md
18-
Rscript -e 'file <- gsub("\\.\\./inst", "inst", readLines("vignettes/overview.md")); writeLines(file, "vignettes/overview.md")'
19-
Rscript -e 'file <- gsub("overview_files", "vignettes/overview_files", readLines("vignettes/overview.md")); writeLines(file, "vignettes/overview.md")'
17+
# sed -i -- 's,../inst,inst,g' vignettes/ggExtra.md
18+
Rscript -e 'file <- gsub("\\.\\./inst", "inst", readLines("vignettes/ggExtra.md")); writeLines(file, "vignettes/ggExtra.md")'
19+
Rscript -e 'file <- gsub("ggExtra_files", "vignettes/ggExtra_files", readLines("vignettes/ggExtra.md")); writeLines(file, "vignettes/ggExtra.md")'
2020
# echo "Copying output to README.md"
21-
# cp vignettes/overview.md README.md
22-
Rscript -e 'file.copy("vignettes/overview.md", "README.md", overwrite = TRUE)'
23-
Rscript -e 'suppressWarnings(file.remove("vignettes/overview.md"))'
21+
# cp vignettes/ggExtra.md README.md
22+
Rscript -e 'file.copy("vignettes/ggExtra.md", "README.md", overwrite = TRUE)'
23+
Rscript -e 'suppressWarnings(file.remove("vignettes/ggExtra.md"))'

NEWS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ggExtra 0.6
22

3-
2016-11-04
3+
2016-11-11
44

55
- support new ggplot2 v2.2.0 (not backwards compatible unforunately because ggplot2 internals changed too much)
66

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ distributed, and plot a simple ggplot2 scatterplot.
8686
df1 <- data.frame(x = rnorm(500, 50, 10), y = runif(500, 0, 50))
8787
(p1 <- ggplot(df1, aes(x, y)) + geom_point() + theme_bw())
8888

89-
<img src="vignettes/overview_files/figure-markdown_strict/init-plot-1.png" style="display: block; margin: auto;" />
89+
<img src="vignettes/ggExtra_files/figure-markdown_strict/init-plot-1.png" style="display: block; margin: auto;" />
9090

9191
Ok, now let's add marginal density plots.
9292

9393
ggMarginal(p1)
9494

95-
<img src="vignettes/overview_files/figure-markdown_strict/ggmarginal-basic-1.png" style="display: block; margin: auto;" />
95+
<img src="vignettes/ggExtra_files/figure-markdown_strict/ggmarginal-basic-1.png" style="display: block; margin: auto;" />
9696

9797
That was easy. Notice how the syntax is not following the standard
9898
ggplot2 syntax - you don't "add" a ggMarginal layer with
@@ -104,7 +104,7 @@ Let's make the text a bit larger to make it easier to see.
104104

105105
ggMarginal(p1 + theme_bw(30) + ylab("Two\nlines"))
106106

107-
<img src="vignettes/overview_files/figure-markdown_strict/ggmarginal-large-1.png" style="display: block; margin: auto;" />
107+
<img src="vignettes/ggExtra_files/figure-markdown_strict/ggmarginal-large-1.png" style="display: block; margin: auto;" />
108108

109109
Notice how the marginal plots occupy the correct space, and even when
110110
the main plot's points are pushed to the right because of larger text or
@@ -114,7 +114,7 @@ You can also show histograms instead.
114114

115115
ggMarginal(p1, type = "histogram")
116116

117-
<img src="vignettes/overview_files/figure-markdown_strict/ggmarginal-hist-1.png" style="display: block; margin: auto;" />
117+
<img src="vignettes/ggExtra_files/figure-markdown_strict/ggmarginal-hist-1.png" style="display: block; margin: auto;" />
118118

119119
There are several more parameters, here is an example with a few more
120120
being used. Note that you can use any parameters that the `geom_XXX`
@@ -124,7 +124,7 @@ and `fill` in the following example.
124124
ggMarginal(p1, margins = "x", size = 2, type = "histogram",
125125
col = "blue", fill = "orange")
126126

127-
<img src="vignettes/overview_files/figure-markdown_strict/ggmarginal-params-1.png" style="display: block; margin: auto;" />
127+
<img src="vignettes/ggExtra_files/figure-markdown_strict/ggmarginal-params-1.png" style="display: block; margin: auto;" />
128128

129129
In the above example, `size = 2` means that the main scatterplot should
130130
occupy twice as much height/width as the margin plots (default is 5).
@@ -136,7 +136,7 @@ plots, you can use the `xparams` or `yparams` parameters, like this:
136136

137137
ggMarginal(p1, type = "histogram", xparams = list(binwidth = 1, fill = "orange"))
138138

139-
<img src="vignettes/overview_files/figure-markdown_strict/ggmarginal-extraparams-1.png" style="display: block; margin: auto;" />
139+
<img src="vignettes/ggExtra_files/figure-markdown_strict/ggmarginal-extraparams-1.png" style="display: block; margin: auto;" />
140140

141141
You don't have to supply a ggplot2 scatterplot, you can also just tell
142142
ggMarginal what dataset and variables to use, but of course this way you
@@ -145,7 +145,7 @@ text/font/theme/etc).
145145

146146
ggMarginal(data = mtcars, x = "wt", y = "mpg")
147147

148-
<img src="vignettes/overview_files/figure-markdown_strict/ggmarginal-manual-1.png" style="display: block; margin: auto;" />
148+
<img src="vignettes/ggExtra_files/figure-markdown_strict/ggmarginal-manual-1.png" style="display: block; margin: auto;" />
149149

150150
Last but not least - you can also save the output from `ggMarginal` and
151151
display it later. (This may sound trivial, but it was not an easy
@@ -155,7 +155,7 @@ discussion](http://stackoverflow.com/questions/29062766/store-output-from-gridex
155155
p <- ggMarginal(p1)
156156
p
157157

158-
<img src="vignettes/overview_files/figure-markdown_strict/ggmarginal-save-1.png" style="display: block; margin: auto;" />
158+
<img src="vignettes/ggExtra_files/figure-markdown_strict/ggmarginal-save-1.png" style="display: block; margin: auto;" />
159159

160160
For more information, see `?ggExtra::ggMarginal`.
161161

@@ -174,7 +174,7 @@ grid lines can be removed as well (default is to remove both).
174174
p2 <- ggplot2::ggplot(df2, ggplot2::aes(x, y)) + ggplot2::geom_point()
175175
p2 + removeGrid()
176176

177-
<img src="vignettes/overview_files/figure-markdown_strict/removeGrid-1.png" style="display: block; margin: auto;" />
177+
<img src="vignettes/ggExtra_files/figure-markdown_strict/removeGrid-1.png" style="display: block; margin: auto;" />
178178

179179
For more information, see `?ggExtra::removeGrid`.
180180

@@ -191,7 +191,7 @@ tick line.
191191
p3 <- ggplot2::ggplot(df3, ggplot2::aes(x, y)) + ggplot2::geom_point()
192192
p3 + rotateTextX()
193193

194-
<img src="vignettes/overview_files/figure-markdown_strict/rotateTextX-1.png" style="display: block; margin: auto;" />
194+
<img src="vignettes/ggExtra_files/figure-markdown_strict/rotateTextX-1.png" style="display: block; margin: auto;" />
195195

196196
For more information, see `?ggExtra::rotateTextX`.
197197

@@ -207,14 +207,14 @@ An example using a table:
207207

208208
plotCount(table(infert$education))
209209

210-
<img src="vignettes/overview_files/figure-markdown_strict/plotCount-table-1.png" style="display: block; margin: auto;" />
210+
<img src="vignettes/ggExtra_files/figure-markdown_strict/plotCount-table-1.png" style="display: block; margin: auto;" />
211211

212212
An example using a data.frame:
213213

214214
df4 <- data.frame("vehicle" = c("bicycle", "car", "unicycle", "Boeing747"),
215215
"NumWheels" = c(2, 4, 1, 16))
216216
plotCount(df4) + removeGridX()
217217

218-
<img src="vignettes/overview_files/figure-markdown_strict/plotCount-df-1.png" style="display: block; margin: auto;" />
218+
<img src="vignettes/ggExtra_files/figure-markdown_strict/plotCount-df-1.png" style="display: block; margin: auto;" />
219219

220220
For more information, see `?ggExtra::plotCount`.
File renamed without changes.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)