You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Adding a grob or formula directly is equivalent to placing it in `full`
p1+~ plot(mtcars$mpg, mtcars$disp)
This example fails if gridGraphics is missing. Should we wrap the whole example in @examplesIf gridGraphics? Or perhaps it's better to note the requirement more explicitly:
# You can even add base graphics if you pass it as a formula (requires gridGraphics package)if (requireNamespace("gridGraphics", quietly=TRUE)) {
p1+ wrap_elements(full=~ plot(mtcars$mpg, mtcars$disp))
# Adding a grob or formula directly is equivalent to placing it in `full`p1+~ plot(mtcars$mpg, mtcars$disp)
}
The text was updated successfully, but these errors were encountered:
patchwork/man/wrap_elements.Rd
Lines 69 to 73 in 51a6eff
This example fails if
gridGraphics
is missing. Should we wrap the whole example in@examplesIf gridGraphics
? Or perhaps it's better to note the requirement more explicitly:The text was updated successfully, but these errors were encountered: