Closed wfmackey closed 4 years ago
I'm unsure whether this can be fixed - it might be a limitation in the RStudio API that I use to detect the user's current selection. I'll try.
Hiii this doesn't seem to be possible. But you can invoke ggannotate
like this:
library(ggplot2)
p <- ggplot(mtcars,
aes(x = wt, y = mpg)) +
geom_point()
ggannotate::ggannotate(p)
Hello Matthew
Love the package! Great job!!
The
ggannotate
function works as expected:But it errors when I use a source window in R Studio (ie I 'pop out' a window):
When running the
ggannotate
add-in with code highlighted from a source window, I will get the error:Many thanks