search for: barcolor

Displaying 2 results from an estimated 2 matches for "barcolor".

Did you mean: barcolors
2009 Jan 16
0
Barchart in lattice package: controlling order of bars in plot and color of a selected bar
...; to make one particular value be a different color than the rest. Is this sort of control available in lattice's barchart? I didn't see it when reading the documentation. Thanks, Matt ### Regular barplot code that works # w02-08 ar pre-sorted in descending "Sum" oder, # "barcolor" column has names of colors to use. opar <- par(mfrow=c(1,4)) barplot(w02[,"Sum"], horiz=T, col=w02[,"barcolor"], names.arg=w02[,"sts.dist"], main="2002") barplot(w04[,"Sum"], horiz=T, col=w04[,"barcolor"], names.arg=w04[,"st...
2005 Sep 01
6
png scaling problem
scaling<-4 xywidth<-480 resolution<-150 png(filename = "c:/r/anschluss/plots/4.png", width = xywidth*scaling, height = xywidth*scaling,pointsize = 12, bg = "white", res = resolution*scaling) ...... barplot(xrow,col = barcolors,cex.axis=scaling, ylab="mean time till attachment in sec",cex.lab=1.2*scaling) I tried to scale the barplot but there is one strange result: scaling=1 http://biostatistic.de/temp/1.png --- the ylab is ok scaling=2 http://biostatistic.de/temp/2.png --- the ylab is not ok scaling...