-
Notifications
You must be signed in to change notification settings - Fork 20
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
Adding legend to boxplot #22
Comments
Thank you. In the meanwhile using
|
Thank you so much, your example works perfect for me.
I've also updated the post on stackoverflow
https://stackoverflow.com/questions/56008148/dont-know-how-to-add-o-to-a-plot-with-r-package-dbplot/56023695#56023695
Am Di., 7. Mai 2019 um 14:54 Uhr schrieb Edgar Ruiz <
notifications@github.com>:
… Thank you. In the meanwhile using db_compute_boxplot() will still push
the calculations to Spark, and then you can create the boxplot manually,
and adding the color option
library(dplyr, warn.conflicts = FALSE)
library(ggplot2)
library(dbplot)
mtcars %>%
db_compute_boxplot(cyl, mpg) %>%
ggplot() +
geom_boxplot(
aes(
x = cyl,
ymin = ymin,
lower = lower,
middle = middle,
upper = upper,
ymax = ymax,
color = as.factor(cyl)
),
stat = "identity"
)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/edgararuiz/dbplot/issues/22#issuecomment-490067075>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACV2WWLGN2BGJDHWSREFCZTPUF3YBANCNFSM4HLH33VQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is not possible to add a legend to a boxplot with dbplot.
https://stackoverflow.com/questions/56008148/dont-know-how-to-add-o-to-a-plot-with-r-package-dbplot
The text was updated successfully, but these errors were encountered: