-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Description
When xaxs and yaxs are set (e.g., automatically in type_barplot and type_spineplot), then they don't get restored afterwards affecting subsequent output.
Example:
tinyplot(~ species, data = penguins, type = type_barplot())
tinyplot(1:10, pch = 19, cex = 2)
tinyplot(species ~ island, data = penguins)
tinyplot(1:10, pch = 19, cex = 2)
Note the clipping of the first and last point in the scatterplot due to the modified xaxs/yaxs settings.
The culprits are the par() settings in the following lines which do not restore the previous settings:
https://github.com/grantmcdermott/tinyplot/blob/main/R/facet.R#L61-L63
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels