trevorld / ggpattern

ggplot geoms with pattern fills
https://trevorldavis.com/R/ggpattern/dev/
Other
361 stars 18 forks source link

Remove or warn about unreliable "placeholder" pattern examples in vignettes? #111

Closed Yann-C-INN closed 7 months ago

Yann-C-INN commented 7 months ago

I get this error:

Error in `value[[3L]]()`:
! img_read() non-specific error with magick::image_read("https://placekitten.com/97/36")
ℹ HTTP error 522.

When running the code from here ggpattern Specifically, this code chunck:

library(magick)
library(ggpattern)
ggplot(mpg, aes(class)) +
  geom_bar_pattern(
    aes(
      pattern_angle = class
    ), 
    pattern         = 'placeholder',
    pattern_type    = 'kitten',
    fill            = 'white', 
    colour          = 'black',
    pattern_spacing = 0.025
  ) +
  theme_bw(18) +
  labs(
    title = "ggpattern::geom_bar_pattern()",
    subtitle = "pattern = 'placeholder', pattern_type = 'kitten'"
  ) + 
  theme(legend.position = 'none') +
  coord_fixed(ratio = 1/15) + 
  scale_pattern_discrete(guide = guide_legend(nrow = 1))

ggpattern_1.0.1 ggplot2_3.5.0

platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
status
major 4
minor 3.2
year 2023
month 10
day 31
svn rev 85441
language R
version.string R version 4.3.2 (2023-10-31 ucrt) nickname Eye Holes

trevorld commented 7 months ago
trevorld commented 7 months ago

Perhaps we should remove the more fragile "placeholder" examples from the vignettes?

trevorld commented 7 months ago