Submitted by nsicad on Wed, 09/22/2010 - 20:41
Posted in
Hi Kyle,
Is ggplot2 already in Red-R?
http://learnr.wordpress.com/2009/03/17/ggplot2-barplots/
http://www.feasiblesolutions.co.nz/ForestryLP_files/Charts.htm
http://bio-geeks.com/?p=720
Hoping to get these graphs in red-r with sqlite data.
Thanks.
Noli
Yeh, GGplot2 is really good at that kind of graphics. Multiple layers and coordination between them.
The interaction is the thing that gives me the most trouble from a developers point of view. I want the users to have an easy time of making the layers but not restrict too much in what they can do.
My solution is to provide a line interface so you can set whatever aesthetics you want. This requires a lot of knowledge about ggplot2 but doesn't restrict you in what you can do with the geom.
Kyle
OK.
I will installed Red-R 1.8 windows xp in my other laptop i.e. netbook.
Meawhile have a look at this posting and screenshot of bar and line graphs in R(?) (below). These is a bit of r script in it.
http://tolstoy.newcastle.edu.au/R/e2/help/06/10/1939.html
http://www.pasilankaista.com/~ekqvistmt/r/Page001.html
Having bar and line graphs in one canvas is really good especially with you are dealing with averages and standard deviation.
For example, harvest area for crops in period and you want to know the average of the crops being harvest and standard deviation on the crop age.
Noli
We're still working on a ggplot2 package. Actually if you had any recomendations on how it might work that would be great.
The outline at the moment is to allow for a variety of layers (the geoms and the stats) to be made and then collected into one widget where the plotting will take place.
So for the first link you listed you would load a geom_bar widget and set the parameters for that, then load a ggplot widget and link the data and the geom_bar widget with the ggplot widget. In the ggplot widget you could set the themes etc.
If you have red-r 1.80 I just put the experimental ggplot2 package up. It's probably really buggy, I can't seem to use it without throwing some kind of error.
If you run into any problems let me know and we can try to work through it. If you (or anyone) has any recomendations on how this package should work please let me know.
Thanks
Kyle