A shiny gadget for interactively annotating a ggplot. Currently supports:
You can install the development version of the package via GitHub:
First, load the libraries and create a plot using ggplot
Use the gglabelr()
function to interactively annotate the plot:
gglabelr(p)
Copy the code to produce the annotations in the “Get the code” tab. The code will also print to the console when you close the app by pressing the “done” button.
If you use this package for in a publication, I would greatly appreciate
it if you cited it. You can get the citation information by typing
citation("gglabelr")
into R:
#> Warning in citation("gglabelr"): no date field in DESCRIPTION file of package
#> 'gglabelr'
To cite package ‘gglabelr’ in publications use:
John Helveston (2020). gglabelr: gglabelr. R package version 0.1.0.
A BibTeX entry for LaTeX users is
@Manual{, title = {gglabelr: gglabelr}, author = {John Helveston}, year = {2020}, note = {R package version 0.1.0}, }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.