Displaying 1 result from an estimated 1 matches for "coast_spot".
2006 Apr 14
1
Adding values to top of bars in barchart
Given the following data frame ("freq.sp"),
> str(freq.sp)
`data.frame': 42 obs. of 4 variables:
$ behav : Factor w/ 6 levels "approach","bowride",..: 1 1 1 1 1 1 1 2
2 2 ...
$ species: Factor w/ 7 levels "COAST_SPOT","EAST_SPINR",..: 1 2 3 4 5 6
7 1 2 3 ...
$ n : int 193 194 563 357 570 369 74 194 208 633 ...
$ pct : num 0.725 0.340 0.252 0.381 0.072 ...
I create a trellis barchart with the following command,
barchart(pct ~ behav | species, data=freq.sp, as.table=TRUE,
xlab="...