-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
add shape parameter for PlotBMRSummary #1525
Conversation
R/plotBMRSummary.R
Outdated
@@ -53,8 +53,10 @@ plotBMRSummary = function(bmr, measure = NULL, trafo = "none", order.tsks = NULL | |||
levels(df$learner.id) = getBMRLearnerShortNames(bmr) | |||
} | |||
|
|||
p = ggplot(df, aes_string(x = meas.name, y = "task.id", col = "learner.id")) | |||
p = ggplot(df, aes_string(x = meas.name, y = "task.id", col = "learner.id", shape = "learner.id")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't really want to hardcode this right?
R/plotBMRSummary.R
Outdated
p = p + geom_point(size = pointsize, position = position_jitter(width = 0, height = jitter)) | ||
# set shape to standard shape 19 | ||
p = p + scale_shape_manual(values = rep(19, length(getBMRLearnerShortNames(bmr)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a look at #1523, this might be problematic for wrapped learners
what is the status here? work in progress? or ready for review? |
Work in progress, will have a look at it tomorrow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add an example to the documentation that shows how to use this please?
What's the status here @QuayAu ? |
Looks good to me. We internally set the shape to the default (using |
@QuayAu can you add an example as requested by @larskotthoff ? |
This is a PR for #1470
This is still work in progress, as I need to add a unit test, that catches the problem that changing the shape parameter didn't have any effect.
Is there any simple way to test if generated ggplots are the same?