Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
@jkmusyoka this is the discussion that I hope can now be extended and developed in a more modern way as we discussed. And some options are above. I hope it can become part of an effectively new menu in Climatic > Describe. That's described in a separate discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A climograph is a simple climatic product. I give examples below. I started, naively, thinking that we should be able to construct them using our general bar chart/line chart capabilities with R-Instat. I would still like to be able to do this, but am failing miserably. I now think we need a special dialogue as we also gradually build up the general graphics capabilities.
First, some examples - from Wikipedia - of course, where it says:
`Climographs display data for two variables: (a) monthly average temperature and (b) monthly average precipitation. These are useful tools to quickly describe a location's climate."
This is a basic one, with just one temperature line. But you could also have avarage max and min. So, still from Wikipedia:
And this website gives information that can easily be translated into exercises.
In the early days of ggplot, the author was against permitting graphs where the left and right axes were of unrelated variables. But this is possible - indeed quite straightforward now and there are good stack-overflow questions on the topic which give a range of examples, for example here and here and here and here
One variation, introduced here is for multiple years:
On names I have seen climatoigraph, climograph, climatogram as well as climate graph.
Once we have a dialogue we may wish to extend it to add Walter-Leith diagrams (another button at the top), for which there is now a ggplot2 function in the relatively new climaemet package. This updates the function in climatol.
Here is possible data for a dialogue:
moz3a.zip
It could be monthly data for each year. Usually it will be average monthly data, so just 12 rows for each station. If monthly data, then I suggest the year and month be made into a Date variable, so the x-axis can be displayed nicely - as shown in one example.
I suggest it should be easy to construct the dialogue, because we have similar controls elsewhere. So:
a) Usual data selector.
b) Single receiver with label
Precip:
c) The Temperature receivers depend on whether we are using tmax and tmin or tmean. I think we have that choice also in the Climatic > Prepare > Transform > Degrees dialogue:
d) Then another single receiver titled
Month/Date:
e) Finally - so far for the right-hand side - a copy of the
Facet By (Optional)
Control, from the PICSA graphs dialogue.f) On the lhs there will be some options I am sure. Ideally we will be producing a ggplot graph, so let's hope the Plot Options could work?
Now while perhaps @Vitalis95 produces the dialogue @COLIEWO could examine the R-code needed for some examples?
I suggest the menu item and dialogue title can be called Climograph. And it can gi in the Climatic > Describe menu below Temperature. That meny needs a lot of improvement but let's do that later.
Beta Was this translation helpful? Give feedback.
All reactions