[R] Override default colour scheme of an effects plot

2013-09-26 Thread Melanie Zoelck
Dear R-Help Members, I have created a few effects plots using the effects package and I am wondering if there is an option to override the default colour scheme of these plots and so as to create the same plot but in greyscale, as this is much better for publication to avoid colour charges. Th

[R] Fw: showing ratio in ggplot bar plot with facets

2013-03-14 Thread Melanie Zoelck
Dear R help members, I have constructed a bar plot using ggplot, where I am showing the number of particles in 10m depth bins (from 0-150m) by release area (3 different ones) and Model (also 3 different ones). My problem is that for each release area a different number of particles was released

[R] Merging labels on Pie chart

2013-02-23 Thread Melanie Zoelck
Dear R Help Members, I need to draw a pie chart for someone and there are 3 small slices in it identifying different species, all 0.7%, who’s labels overlap so you cannot read them. Is there a way to have only 1 label the three slices, so as to merge the three labels into one without merging

[R] Plotting Discriminants from qda

2013-02-20 Thread Melanie Zoelck
Dear R Help Members, I am aware how to plot the LD1 vs LD2 from a lda in R, using the code: plot(baseline.systat.hat$x, col=baseline.systat.hat$class,pch=as.numeric(baseline.systat.hat$class)) However, I need to use the quadratic discriminant function, qda due to data properties. Is there a wa

[R] calculate classification error in test data set if training data set is not the same length

2013-02-17 Thread Melanie Zoelck
set). Is there a way to construct a classification table from the test data predictions and get the classification error? Thank you! Melanie Zoelck Melanie Zölck (Zoelck) PhD Candidate Galway-Mayo Institute of Technology Marine and Freshwater Resear

[R] Doing mixed stock analysis with predict function using DFA

2013-02-01 Thread Melanie Zoelck
Dear R Help Mailing List Members, I have some baseline data (attached) on which I plan to run a DFA in R to find out the best predictor variables that best allow discrimination between the different stocks. I then need to apply this DFA function to the mixed data set (attached), which contains

[R] Doing mixed stock analysis with predict function using DFA

2013-01-19 Thread Melanie Zoelck
Dear R Help Mailing List Members, I have some baseline data (attached) on which I plan to run a DFA in R to find out the best predictor variables that best allow discrimination between the different stocks. I then need to apply this DFA function to the mixed data set (attached), which contains

[R] Creating a new variable from existing ones

2011-01-26 Thread Melanie Zoelck
is names or rather factors with a number of levels (which are place names). I would be grateful for any assistance you may be able to provide. Thank you! Melanie Zoelck 86 Gleann Na Ri Renmore Galway Ireland Tel.: +353 91 746086 Movil/Mobile: +353