Skip to content

Docs: showcase of tinytheme() plots not displaying properly on website #301

@grantmcdermott

Description

@grantmcdermott

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.

tinyplot/R/tinytheme.R

Lines 80 to 93 in 7ed11e4

#' # 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions