The Wayback Machine - https://web.archive.org/web/20200709215708/https://github.com/topics/bookdown
Skip to content
#

bookdown

Here are 179 public repositories matching this topic...

philip-khor
philip-khor commented Dec 21, 2019

In Section 3.5

The first argument of facet_wrap() should be a formula, which you create with ~ followed by a variable name (here “formula” is the name of a data structure in R, not a synonym for “equation”). The variable that you pass to facet_wrap() should be discrete.

However, the ggplot2 documentation for facet_wrap() states that the formula interface is there for compatibility in fa

markbneal
markbneal commented Mar 10, 2020

There is an option to create captions at the top of figures, fig.topcaption=TRUE, described here. I note it isn't documented in the bookdown book, and the functionality is hard to find. It appears to live in the knitr package here. Would it be u

rmd4sci
mlr3book
nickreich
nickreich commented Feb 4, 2020

Section 2.5.5: I recommend adding at least one sentence about each of the figures, just describing what the plot is, even if it seems obvious. In particular, for the ROC curve, I think it's important to describe what the shaded ribbon represents. Is it a range across all resampling iterations? Some estimate of a 5th/95th percentile?

Also, when I visit the linked documentation page https://mlr3v

XiangyunHuang
XiangyunHuang commented Aug 30, 2019

保存高质量的 png 文件,同时文件比较小,pdf 文档实际是 png 图片

# install.packages('devtools')
devtools::install_github("r-lib/ragg")
devtools::install_github("ilarischeinin/rasterpdf")

library(ggplot2)
library(rasterpdf)

raster_pdf("diamonds-agg.pdf", res = 300, width = 6, height = 5, 
           png_function = ragg::agg_png)
ggplot(diamonds, aes(carat, price)) + geom_point()
dev.off()

参考 htt

Improve this page

Add a description, image, and links to the bookdown topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the bookdown topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.