Top "Lattice" questions

lattice is a package that forms part of base R and allows the creation of trellis-type graphics.

How to save a plot as image on the disk?

I plot a simple linear regression using R. I would like to save that image as PNG or JPEG, is …

r plot ggplot2 lattice r-faq
How to plot a function curve in R

What are the alternatives for drawing a simple curve for a function like eq = function(x){x*x} in R? …

r ggplot2 plot lattice r-faq
How to add boxplots to scatterplot with jitter

I am using following commands to produce a scatterplot with jitter: ddf = data.frame(NUMS = rnorm(500), GRP = sample(LETTERS[1:5],500,replace=…

r plot lattice
Lattice: multiple plots in one window?

I'm trying to put multiple lattice plots in one window using levelplot by setting par(mfrow=c(2,1)) but it seems …

r lattice
Plot the observed and fitted values from a linear regression using xyplot() from the lattice package

I can create simple graphs. I would like to have observed and predicted values (from a linear regression) on the …

r lattice
beautiful Pie Charts with R

Let's say I have this simple data: mydata <- data.frame(group=c("A", "B", "0", "AB"), FR=c(20, 32, 32, 16)) If …

r ggplot2 pie-chart lattice
Diagonal labels orientation on x-axis in heatmap(s)

Creating heatmaps in R has been a topic of many posts, discussions and iterations. My main problem is that it's …

r label data-visualization heatmap lattice
R: how to change lattice (levelplot) color theme?

The default theme on my installation is something which maps the values to pink and cyan. How to change it …

r graphics colors lattice
plotting two vectors of data on a GGPLOT2 scatter plot using R

I've been experimenting with both ggplot2 and lattice to graph panels of data. I'm having a little trouble wrapping my …

r plot ggplot2 lattice
Plotting xyplot with regression line on lattice graphics

I have loaded the lattice package. Then I run: > xyplot(yyy ~ xxx | zzz, panel = function(x,y) { panel.lmline(…

r panel lattice