Skip to content

Instantly share code, notes, and snippets.

@yutannihilation
Last active September 26, 2018 16:53
Show Gist options
  • Select an option

  • Save yutannihilation/4f0f473677db85efd30738ddfdca5255 to your computer and use it in GitHub Desktop.

Select an option

Save yutannihilation/4f0f473677db85efd30738ddfdca5255 to your computer and use it in GitHub Desktop.
library(ggplot2)
# To reproduce this error shadowtext is installed from source, not binary.
library(shadowtext)

set.seed(1)
d <- data.frame(x = rnorm(3), y=rnorm(3), label = c('hello', 'world', '!!!'))
ggplot(d, aes(x,y)) +
  geom_shadowtext(aes(label=label, color=label), bgcolor='firebrick')
#> Error in col[, rep(1, length(alpha)), drop = FALSE]: subscript out of bounds

Created on 2018-09-27 by the reprex package (v0.2.1)

@yutannihilation
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment