Displaying 5 results from an estimated 5 matches for "ge_distance".
2012 Sep 24
3
boxplot of different colors
...advance.
Elaine
R code
# data input
dataN
<-read.csv("H:/a_mig_distance_B_NB/R_data/Mig_bird_586_20120925.csv",header=T,
row.names=1)
dim(dataN)
dataN[1,]
str(dataN)
# graph
par(mai=c(1,1.03,0.4,0.4))
obs.group<-dataN$Diet_B
par(new=T)
boxplot(GE_distance~Diet_B, data=dataN,xlab="Diet of Breeding
Ground",ylab="",
yaxt="n",type="p",
pch=1,lwd=0.95,
cex.lab=1.4, cex.axis=1.2,
font.axis=2,
cex=1.5,
las=1,
bty="l",
col=c("forestgreen", "darkgreen",&q...
2012 Sep 28
2
changing outlier shapes of boxplots using lattice
...the display was almost perfect except the outlier
shape.
Based on the following code, the outliers are vertical lines.
However, I want the outliers to be empty circles.
Please kindly help how to modify the code to change the outlier shapes.
Thank you.
code
package (lattice)
dataN <- data.frame(GE_distance=rnorm(260),
Diet_B=factor(rep(1:13, each=20)))
Diet.colors <- c("forestgreen", "darkgreen","chocolate1","darkorange2",
"sienna2","red2","firebrick3","saddlebrown","coral4&...
2013 Jan 12
1
panel failure in xyplot
...tr(dataN)
diet.code <- c("Herbivore", "Omnivore", "Carnivore")
Diet.colors <- c("forestgreen", "darkblue","red2")
levels(dataN$Diet) <- diet.code
# graph
par(mai=c(1.03,1.03,0.4,0.4))
par(new=T)
xyplot(GE_distance~Diet, data=dataN,
xlab=list("Diet of Breeding Ground", cex = 1.4),
ylab=list("Migration Distance",cex = 1.4),
xaxt="n",
yaxt="n",type="p",
lwd=1.5,
cex.lab=1.4, cex.axis=1.2,
font.axis=2,
cex=1.5,
las=1,
b...
2013 Jan 12
1
color in xyplot
...ary (lattice)
diet.code <- c("Herbivore", "Omnivore", "Carnivore")
Diet.colors <- c("forestgreen", "darkblue","red2")
levels(dataN$Diet) <- diet.code
# graph
par(mai=c(1.03,1.03,0.4,0.4))
par(new=T)
xyplot(GE_distance~Diet, data=dataN,
xlab=list("Diet of Breeding Ground", cex = 1.4),
ylab=list("Migration Distance",cex = 1.4),
xaxt="n",
yaxt="n",type="p",
lwd=1.5,
cex.lab=1.4, cex.axis=1.2,
font.axis=2,
cex=1.5,
las=1,
b...
2012 Sep 25
0
boxplot of multi box color
...e kindly help with modification and thank you.
Also, if anything is unclear, please let me know.
code
# data input
dataN <-read.csv("H:/Mig_bird_586_20120925.csv",header=T, row.names=1)
dataN$Diet_B <-factor(dataN$Diet_B)
# graph
par(mai=c(1,1.03,0.4,0.4))
boxplot(GE_distance~Diet_B, data=dataN, col = rep(seq(ncol(Diet_B)) +
1, each = 1))
[[alternative HTML version deleted]]