Re: [R] Specify order of groups negative binomial (glm.nb)

2016-02-25 Thread Katharine Miller - NOAA Federal
onal preference. > >> > >> See ?C or ?contrasts, which I understand to be alternative ways of > >> doing the same thing (and would appreciate correction is this is > >> wrong). Or this can be done through the "contrasts" argument of > >> glm.nb. &

[R] Specify order of groups negative binomial (glm.nb)

2016-02-25 Thread Katharine Miller - NOAA Federal
Hi, I am using the glm.nb function to evaluate differences in the catch of individual species of fish across three river tributaries. The dependent variable is catch per unit effort (CPUE), and the independent variable is the the tributary (Trib_cat). CPUE is derived from the fish counts divided

[R] R Kohonen counts plot from unit classification?

2015-02-06 Thread Katharine Miller - NOAA Federal
I am new to the R Kohonen package. I plotted the counts per cell and then compared it to the unit.classif. from the som output - but I can't seem to get it to match up. Cells that show no counts in the counts plot have 3 or more data objects assigned to them in the unit. classif. I can provide t

[R] Chart colors

2013-12-09 Thread Katharine Miller - NOAA Federal
Hello, I am having difficulty obtaining the correct colors in my R charts. > colors()[c(552, 254, 26)] [1] "red" "green" "blue" But, if I specify col=552 in my barplot, I get gray bars. Likewise, col=254 gives bright pink, and col=26 is a red-orange. I get accurate results when I spell out