Skip to content

Commit

Permalink
add additional limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
AliciaSchep committed Sep 5, 2018
1 parent a767e61 commit 8bc57bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Binary file modified README-plot_plot-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README.Rmd
Expand Up @@ -105,3 +105,4 @@ gglabeller(p, aes(label = rownames(mtcars)), fontface = "bold", color = "red")

Requires points to label; not targetted at line plots or other non-point plots.

Relies on shiny's nearPoints and brushedPoints functions, which require that the 'x' and 'y' aesthetics be mapped to a column name and not a transformation. For example, `ggplot(mtcars, aes(x = log(wt), y = mpg)) + geom_point()` will not work because the x aesthetic is mapped to a transformation of the column. For such a plot, one could modify the input first to create a column with the log of the value.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -112,3 +112,10 @@ gglabeller(p, aes(label = rownames(mtcars)), fontface = "bold", color = "red")

Requires points to label; not targetted at line plots or other non-point
plots.

Relies on shiny’s nearPoints and brushedPoints functions, which require
that the ‘x’ and ‘y’ aesthetics be mapped to a column name and not a
transformation. For example, `ggplot(mtcars, aes(x = log(wt), y = mpg))
+ geom_point()` will not work because the x aesthetic is mapped to a
transformation of the column. For such a plot, one could modify the
input first to create a column with the log of the value.

0 comments on commit 8bc57bc

Please sign in to comment.