-
Notifications
You must be signed in to change notification settings - Fork 103
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
Line geoms #4455
Line geoms #4455
Conversation
- slope and intercept (geom_abline) - yintercept (geom_hline) - xintercept (geom_vline)
clsgeom_abline.AddAesParameter("slope", strIncludedDataTypes:={"numeric"}, bIsMandatory:=True) | ||
clsgeom_abline.AddAesParameter("intercept", strIncludedDataTypes:={"numeric"}, bIsMandatory:=True) '(required) intercept with the y axis of the line (the "b" in "y=ax+b") | ||
clsgeom_abline.AddAesParameter("slope", strIncludedDataTypes:={"numeric"}) | ||
clsgeom_abline.AddAesParameter("intercept", strIncludedDataTypes:={"numeric"}) '(required) intercept with the y axis of the line (the "b" in "y=ax+b") |
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.
Why are these not mandatory anymore? This seems to be mandatory from this reference -http://sape.inf.usi.ch/quick-reference/ggplot2/geom_abline
Hi Maxwell, The slope and intercept parameters are mandatory but it is not mandatory to have these parameters set within the We can have these parameters within So if we have these as mandatory within in |
This is possibly another type of "mandatory" that we should have, where a parameter is mandatory somewhere in the geom but not in a particular place. |
@bethanclarke Is this ready for review yet? |
Hi @maxwellfundi, yes it's ready to review. Thanks |
Great, @africanmathsinitiative/developers someone can review this now. |
Reviewing and testing this now. |
instat/ucrGeom.vb
Outdated
@@ -1178,7 +1178,7 @@ Public Class ucrGeom | |||
|
|||
'adding layer parameters | |||
'Geom_density layer parameters | |||
clsgeom_violin.AddLayerParameter("draw_quantiles", "list", Chr(34) & "not(NULL)" & Chr(34), lstParameterStrings:={Chr(34) & "not(NULL)" & Chr(34), "0.25", "0.5", "0.75", "c(0.25, 0.5)", "c(0.25, 0.75)", "c(0.5,0.75)", "c(0.25,0.5,0.75)"}) 'If not(NULL) (default), draw horizontal lines at the given quantiles of the density estimate. | |||
clsgeom_violin.AddLayerParameter("draw_quantiles", "list", Chr(34) & "NULL" & Chr(34), lstParameterStrings:={Chr(34) & "NULL" & Chr(34), "0.25", "0.5", "0.75", "c(0.25, 0.5)", "c(0.25, 0.75)", "c(0.5,0.75)", "c(0.25,0.5,0.75)"}) 'If not(NULL) (default), draw horizontal lines at the given quantiles of the density estimate - confusing instructions; it's say NULL is the default and when it not NULL and soemthing else then draw horizontal lines at the given quantiles of the density estimate |
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.
From R documentation the default is not(NULL)
why did you change this? . I didn't understand your comment here perhaps you could clarify.
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.
ok, i see the confusion in R documentation. Should this parameter value have quotes around?
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.
Perhaps i am doing something wrong here.I loaded survey dataset, on line plot dialog i have Fert as X Variable and Field as single variable then on plot options layer parameters i select geom_violin and check draw_quantiles checkbox i see the default is NULL then return back to the main dialog and click ok i found a bug.
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.
@shadrackkibet you are correct, NULL should not be in quotes in the code.
@bethanclarke whats the status of this? |
Hi Maxwell,
I will look at this today. Having some trouble opening data in R-Instat so haven’t been able to test the dialog yet.
Thanks
Beth
On 5 Apr 2018, at 09:45, Maxwell Fundi <[email protected]<mailto:[email protected]>> wrote:
@bethanclarke<https://github.com/bethanclarke> whats the status of this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#4455 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/APcKV4i37rPZsF5XlB9H6A4vbTE2P2v_ks5tldm8gaJpZM4SsCVX>.
|
@bethanclarke could this be same issue i am experiencing ? |
Hi @shadrackkibet, I spoke to Danny and he said "You may have an older version of R which has this bug. Try updating to R 3.4.4 and see if that fixes it." This fixed my problem however, I was having a different issue to you but it's worth updating R anyway to see if it fixes the issue you're having |
@shadrackkibet which dataset did you try to load? |
Just immediately i click Browse Import from Library dialog loads and then i got above error.Additionally, when i click open from File in File menu and Open icon, i got the same issue. |
It seems like the error is in displaying the File select dialog then. I'm not getting that on mine. Is anyone else getting this? |
Am not getting this either. |
@dannyparsons this is now ready for you to review. |
Changed some aes parameters to not mandatory in abline, hline and vline