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

ggplot with two data #22

Open
Ireneruru opened this issue Aug 6, 2021 · 1 comment
Open

ggplot with two data #22

Ireneruru opened this issue Aug 6, 2021 · 1 comment

Comments

@Ireneruru
Copy link

In this R script, there are two data: mean_wt and mtcars. However, current pygg only resolve one data and can not resolve the mean_wt.

mean_wt <- data.frame(cyl = c(4, 6, 8), wt = c(2.28, 3.11, 4.00))
ggplot(mtcars, aes(mpg, wt, colour = wt)) +
  geom_point() +
  geom_hline(aes(yintercept = wt, colour = wt), mean_wt) +
  facet_wrap(~ cyl)

Example source

@sirrice
Copy link
Owner

sirrice commented Aug 19, 2021

cool! definitely a common usecase, especially when created layered plots. it requires uniquely naming each dataset turning the transpilation. want to open a pr for it?

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