See the very final example here: https://grantmcdermott.com/tinyplot/man/tinytheme.html#examples
Seems to be an issue related to knitr and the plots being produced within a for loop.
|
#' # Themes showcase |
|
#' ## We'll use a slightly more intricate plot (long y-axis labs and facets) |
|
#' ## to demonstrate dynamic margin adjustment etc. |
|
#' |
|
#' thms = eval(formals(tinytheme)$theme) |
|
#' |
|
#' for (thm in thms) { |
|
#' tinytheme(thm) |
|
#' tinyplot( |
|
#' I(Sepal.Length*1e4) ~ Petal.Length | Species, facet = "by", data = iris, |
|
#' main = "Demonstration of tinyplot themes", |
|
#' sub = paste0('tinytheme("', thm, '")') |
|
#' ) |
|
#' } |
Tracking upstream here: yihui/knitr#2392
See the very final example here: https://grantmcdermott.com/tinyplot/man/tinytheme.html#examples
Seems to be an issue related to
knitrand the plots being produced within a for loop.tinyplot/R/tinytheme.R
Lines 80 to 93 in 7ed11e4
Tracking upstream here: yihui/knitr#2392