Skip to content
Prev 6875 / 12125 Next

[R-pkg-devel] Using ggplot2 within another package

On Thu, Apr 22, 2021 at 11:19 PM Kevin R. Coombes
<kevin.r.coombes at gmail.com> wrote:
[...]
Well, for one, because it does not always work, see e.g. the examples
and links here:
https://github.com/tidyverse/ggplot2/issues/2693
Because if you refer to a hundred different columns in your plots, then
you'll need to add all of them to globalVariables(), and this is error prone
and cumbersome to update. If you only refer a handful of columns, then sure,
this will work as well.

Gabor

[...]