Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: ggimage #1019

Open
davidhodge931 opened this issue Dec 11, 2024 · 1 comment
Open

docs: ggimage #1019

davidhodge931 opened this issue Dec 11, 2024 · 1 comment

Comments

@davidhodge931
Copy link
Owner

library(tidyverse)
library(ggimage)
library(ggblanket)

set_blanket()

# https://bioart.niaid.nih.gov/bioart/464

set.seed(3)

data.frame(x = rnorm(10),
                 y = rnorm(10),
                 image = 'SARSCoV20002.svg') |> 
  gg_line(
    x = x, 
    y = y, 
    colour = "#ff483a",
    ) +
  geom_image(aes(image = image), size = 0.2)
image
@davidhodge931
Copy link
Owner Author

library(tidyverse)
library(ggimage)
library(ggblanket)

set_blanket()

tibble(
  letters = c("A", "B", "C"),
  numbers = 1:3,
  image = 'SARSCoV20002.svg',
) |> 
  gg_line(
    x = letters,
    y = numbers,
    group = 1,
    colour = grey,
  ) +
  geom_image(
    aes(image = image),
    size = 0.2,
  )

tibble(
  letters = c("A", "B", "C"),
  numbers = 1:3,
  image = 'SARSCoV20002.svg',
) |> 
  gg_col(
    x = letters,
    y = numbers,
    width = 0.75,
    group = 1,
    colour = grey,
  ) +
  geom_image(
    aes(y = numbers - 0.25, image = image),
    size = 0.2,
  )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant