Is there a way to make a forest plot have alternating translucent grey and white boxes for each variable in a forest plot in ggplot or sjplot similar to this formatting (preferably for sjplot)? I'd ideally like to do this using only a model object provided as the input and then the set the zebra theme
It's basically just the zebra format from the r package table1 seen in this link here
.
I'm wondering how I can make figures or plots like this one in Sage, if it's possible:
Thanks very much.
I want to use ggplot2 to draw curves (geom_curve with ggplot2 2.0.0), but the number of curves is too large (about 2 million curves). I want to draw them in one figure, but it will take too long.
I want to get a figure like this:
How I can draw a figure like this? ggplot2? or any other better tools?
I want to plot a contour of my data in R.
What is the difference between levelplot vs. contoutplot in package lattice and latticeExtra in R?
The 'latticeExtra' package contains none of the functions you mention.
Briefly, 'levelplot' fills in colored squares, while 'contourplot' makes curved lines like a topographic map.
But the best way for you to see is to simply look at and run the code for the examples for the two functions in the lattice package.
Using R I would like to replace the points in a 2d scatter plot by a pie chart displaying additional values.
The rational behind is that I have time series data for hundreds of elements (proteins) derived from a biological experiment monitored for 4 conditions. I would like to plot the elements (categorial data) on the y axis and occurrence of a event in time on the x axis. To visualize the relative occurrence between the 4 conditions I would like to visualize this in form of a pie chart or doughnut chart overplayed onto the respective point in the scatter plot.
The overall data density is low so overlapping won't be an issue.
Is this possible in R?
I was thinking of using a manual scale in ggplot2 but could not figure out how to define a pie chart as a scale.
Also of interest would be how to best cluster this data and sort it accordingly.
Yes. pieGlyph() is one ready-to-go function from the Rgraphviz package.
Also, I would check out this Q/A for how to do things like this more generally:
How to fill a single 'pch' point on the plot with two-colours?
Especially check out ?my.symbols from the TeachingDemos package.
Lastly, in regards to ggplot2, you should check out this blog post about possible upcoming features:
http://blog.revolutionanalytics.com/2011/10/ggplot2-for-big-data.html
See also Paul Murrell. Integrating grid graphics output with base graphics output. R News, 3(2):7-12, October 2003. http://www.r-project.org/doc/Rnews/Rnews_2003-2.pdf
The code on pp 10-11 sets up the main plot axes, labels and legend, and then opens a series of smaller windows centered at each individual point on the plot and plots a small graph in each window. I've tried pie charts, mosaics and barplots, but the method is not limited to these types.