Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions R/tinyplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -659,15 +659,6 @@ tinyplot.default = function(
}
}

# catch for adding to existing facet plot
if (!is.null(facet) && add) {
recordGraphics(
par(get_saved_par(when = "after")),
list = list(),
env = getNamespace('tinyplot')
)
}

# Save current graphical parameters
opar = par(no.readonly = TRUE)
if (restore.par || !is.null(facet)) {
Expand All @@ -678,6 +669,15 @@ tinyplot.default = function(
}
set_saved_par(when = "before", opar)

# Catch for adding to existing facet plot
if (!is.null(facet) && add) {
recordGraphics(
par(get_saved_par(when = "after")),
list = list(),
env = getNamespace('tinyplot')
)
}

# Ephemeral theme
if (!is.null(theme)) {
# browser()
Expand Down
Loading