[R] dotplot in ".R" with lattice & latticeExtra: proper visualization

Andres LaCortadora LaCortadora at kaffeeschluerfer.com
Thu Oct 11 15:48:14 CEST 2012

Dear everyone,

I'm trying to do a dotplot with the libraries "lattice" and "latticeExtra".
However, no proper representation of the values on the vertical y-axis is
done by ".R". Instead of choosing the actual values of the numeric variable,
".R" plots the rank of the value. That is, there are values [375, 500, 625,
750, ..., 3000] and ".R" plots their ranks [1,2,3,4,...23] and chooses the
scale accordingly. Has someone experienced a problem like this? How can I
manage the get a proper representation with ticks like (0, 500, 1000, 1500,
...) on the vertical y-scale?

Here's my data:

And here the program code so far:

df.dose <- read.table("data.csv", sep=",", header=TRUE)
library(lattice); library(latticeExtra)

useOuterStrips(dotplot(z ~ sample.size |
		       groups=as.factor(type), data=df.dose, as.table=TRUE))

I'd be glad for any kind of help!

View this message in context: http://r.789695.n4.nabble.com/dotplot-in-R-with-lattice-latticeExtra-proper-visualization-tp4645850.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list