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

Handling of multiple geoms with their own data in facet_wrap is broken #101

Open
Vindaar opened this issue Dec 10, 2020 · 0 comments
Open

Comments

@Vindaar
Copy link
Owner

Vindaar commented Dec 10, 2020

With the following data ranges for the two geoms:

1. (low: 4.740334241187842, high: 5.570311792097331)                                                                                                                                                                                                                                                                                                                                                                                
2. (low: 1.966464433299198, high: 2.030504138958957)       

the plot cannot be created, because we only look at the geoms dataframe to compute the scale if scale is set to free for the facet wrap.

  ggplot(dfTime, aes("timestamp", "energy")) +
    facet_wrap("runPeriods", scales = "free") +
    geom_point(alpha = some(0.5)) +
    geom_point(data = df, aes = aes(x = "timestamp", y = "photoEsc"),
               color = some(parseHex("FF00FF"))) + #f{`photo` / `escape`})) +
    scale_x_continuous(labels = formatTime) +
    xlab(rotate = -45, alignTo = "right") +
    ggtitle(&"Mean of total charge within {interval:.1f} min, {titleSuff}") +
    ggsave(&"{outpath}/photo_div_escape_vs_time.pdf", width = 1920, height = 1080)
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