Displaying 2 results from an estimated 2 matches for "mig_bird_586_20120925".
2012 Sep 24
3
boxplot of different colors
...I tried to color the box using 13 colors but failed.
Only red and brown were displayed.
Green, blue, and grey disappeared.
Please kindly advise modification after checking the code below.
Thank you in 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",ty...
2012 Sep 25
0
boxplot of multi box color
...ked the previous r-help and found a possible solution.
However, it did not work by showing "error in ncol(Diet_B)," Diet_B not
found.
Please 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]]