Displaying 3 results from an estimated 3 matches for "theplot".
Did you mean:
heplot
2013 Jul 25
1
GGplot 2 – cannot get histogram and box plot axis to match.
...e/5,
max(dataVector) + dataRange/5)
#making the box plot
theBoxPlot <- ggplot(dataSet,aes_string(x = "MPG.city",y = "MPG.city"))
theBoxPlot = theBoxPlot + geom_boxplot() + expand_limits(y= graphRange) + coord_flip()
print(theBoxPlot)
#making the histogram
thePlot <- ggplot(dataSet,aes_string(x = "MPG.city"))
thePlot <-thePlot + geom_histogram() + expand_limits(x= graphRange)
print(thePlot)
Thank you for taking the time to read this.
John Clow
UCSB Student
2012 Oct 10
1
Filling points in a trellis object
With the following code :
I would like to plot 4 points, and have the circle and diamond shapes filled
with grey. What am I missing ?
Thanks by advance for your help,
Pierrick Bruneau
Research Fellow
CRP Gabriel Lippmann
--
View this message in context: http://r.789695.n4.nabble.com/Filling-points-in-a-trellis-object-tp4645679.html
Sent from the R help mailing list archive at Nabble.com.
2012 Oct 10
1
impossible to fill point glyphs in a lattice plot
(sorry for repetition: the previous mail resulted from a weird manipulation
in the forum)
With the following code :
dat1 <- matrix(nrow=4, ncol=2)
dat1[1,] <- c(-2, 1)
dat1[2,] <- c(-1.7, 0.9)
dat1[3,] <- c(0.1, 0.6)
dat1[4,] <- c(0.5, 0.5)
theplot <- xyplot(V2 ~ V1, as.data.frame(dat1), pch=c(4,1,5,4))
plot(theplot, prefix="theplot") # for a predictable name
grid.edit("theplot.xyplot.points.panel.1.1", gp=gpar(lwd=c(2,2,2,2),
cex=c(2,3,3,2),
col=1, fill=c("transparent", "grey", "grey", &...