-
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
Improve the ribbon geom and the general graph dialog? #8428
Comments
If we have the
This sounds like a good solution |
@rdstern there is another point I would want to add. That is that to run this plot, the "Column Summaries" dialog was first used to create the following variables:
But that is reasonably straight forward R code. My question is whether this is an option in the dialog, or if the user should have created these variables before? If created the variables before, they can specify how they want to treat NAs etc. But perhaps that is too complicated? To give reproducible R code using the dodoma data:
|
@lilyclements many thanks. I will reply at length later. For now @N-thony and maybe @MeSophie (who has done similar changes elsewhere?) I suggest an urgent small fix to geom_ribbon would be very useful, and ideally to include in the July update. The geom_ribbon is very similar to geom_area. Both are already in R-Instat, but geom_ribbon is missing the fill aesthetic, or parameter. Please could it be added. It should be next to the colour one and I presume just the same as the fill checkbox/aes in geom_area and others. Also please add Alpha into the parameters. It is there in the aesthetics, but missing in the parameters. Again, use geom area as an example that does include alpha, so that can perhaps be copied. |
@lilyclements has prepared a nice climatic graph as follows:
This uses geom_ribbon which we have already in R-Instat. She uses summary climatic data and then (of course) R code to produce the graph. In the short-term I would like to be able to produce it using the Describe > General > Graph dialog. Later I see this as a nice example of a special climatic climatic graph to go into the Climatic > Describe > Rainfall dialog - which is currently empty and disabled.
Here is the code and I suggest it indicates a need for an improvement in geom_ribbon, and also in the general dialog.
a) @lilyclements could you look at the current geom_ribbon. I think it needs the fill parameter added, Maybe both as an aeshetic and a parameter. It seems the most obvious for ribbon and I wonder why it is missing. I don't see anything else missing?
b) Then there is an "interesting" feature in this plot, namely that the x-axis is a factor, but the geom needs a numeric variable. That seems to me to be a general point, so perhaps we could add this option into the dialog? My first go - for comment by @lilyclements is as follows:
In this dialog, underneath the x-variable we move the Fill:Colour down and have 2 checkboxes. Both are invisible initially. If the x-variable is a factor, then the first checkbox becomes visible (default unchecked) and has label Use as Numeric.
If checked, then it allows for the as.numeric() in the code above.
If checked a second checkbox becomes visible (default unchecked) with label Display as Factor. If checked it adds roughly the last line of code above to the command.
The text was updated successfully, but these errors were encountered: