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

Is it possible to insert an image in a plot? #8

Open
ManuelSpinola opened this issue Jun 4, 2022 · 4 comments
Open

Is it possible to insert an image in a plot? #8

ManuelSpinola opened this issue Jun 4, 2022 · 4 comments
Assignees

Comments

@ManuelSpinola
Copy link

How can I insett an image in a plot?

@JohnCoene
Copy link
Member

I don't think this is currently possible. I don't see that in the original docs.

@ManuelSpinola
Copy link
Author

ManuelSpinola commented Jun 5, 2022 via email

@JohnCoene
Copy link
Member

Apologies, it is indeed possible but it's very awkward.

g2(cars, asp(speed, dist)) %>%
  fig_point() %>%
  info_image(
    start = c(10, 60),
    end = c(20, 80),
    style = list(
      width = 50,
      height = 50
    ),
    src = "https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*ELYbTIVCgPoAAAAAAAAAAABkARQnAQ"
  )

@ManuelSpinola
Copy link
Author

ManuelSpinola commented Jun 5, 2022 via email

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

2 participants