[R] Transparent colors OR two series on one histogram

2005-03-10 Thread Nathaniel Street
Hi,
I want to be able to plot a single histogram of a measured trait with 
trait values from two conditions on the same histogram to allow easy 
comparison.

I have previously done this in excel by plotting the two series on a 
single bargraph having calculated frequencies in bins. You then get one 
condition plotted immediately to the right of the other. I hope that 
makes sense?

I don't know if this is possible in R?
If not, I could plot the second one on top of the first i.e.
hist(x)
hist(y,add=TRUE)
but i would need to set one as having a semi-transparent color so that 
where the two sets of are plotted on top of each other, you can see the 
frequency of the first series 'behind' the second.

Can anyone help me do this? It would be another step towards never using 
excel again :)

Thanks
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Specifying error terms in aov and lme

2004-11-04 Thread Nathaniel Street
I need to specify error terms properly in a mixed-effects anova model. I 
know you can add error terms in aov using Error and can specify random 
factors in lme but I am not sure how these get treated.

When making the calculations for fixed and random factors, are the correct 
error terms used and how can you get aov or lme to use different error 
terms for fixed and random effects?

I'm basing the need for this on this table from Zar,

Both fixed factors - both tested against error
Both random factors - both tested against interaction MS
1 fixed - interaction MS
1 random - replicate MS

for random you can use error if the interaction is not significant (I have 
been told). 

I want to make sure that the correct error terms are always being used.

Thanks for your help

-- 
Nathaniel Street
 University of Southampton
Plants and Environment Lab
 School of Biological Sciences
Basset Crescent East
Southampton
SO16 7PX
tel: +44 (0) 23 8059 4387
 fax: +44 (0) 23 8059 4459
  [EMAIL PROTECTED]
  http://popyomics.biol.soton.ac.uk/~nat
 ICQ: 203465793

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Labelling contour lines

2004-11-04 Thread Nathaniel Street
I am using contour to draw contour lines onto a photo (jpeg) of a leaf on 
a white background.

I have two problems:

1) The contour gets plotted at right angles to the jpeg image. I guess 
this is a problem of referencing the start and end points of the image 
matrix but I can't see how to over come this other than loading in a 
second image that has been rotated 90 degrees and plotting the contours on 
the non-rotated one (obviously a bad solution)

2) I want to be able to select a single contour after they have been 
drawn. I know there is contourLines but I can't see how to relate this to 
the contours plotted. In matlab there is a function to label contours so 
that they can be called by their contour label in order to get the 
coordinates of the contour. Can this be done in R.

Sorry if these are easy / stupid questions. I'm new to all this. I have 
searched previos posts but can't find the answers I need and I would 
rather be able to use R than matlab.

Thanks

-- 
Nathaniel Street
 University of Southampton
Plants and Environment Lab
 School of Biological Sciences
Basset Crescent East
Southampton
SO16 7PX
tel: +44 (0) 23 8059 4387
 fax: +44 (0) 23 8059 4459
  [EMAIL PROTECTED]
  http://popyomics.biol.soton.ac.uk/~nat
 ICQ: 203465793

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Printing multiple graphics devices

2003-07-06 Thread Nathaniel Street
Hi

I'm using a function (arrayview from the maanova package) that produces 
12 plots, all in separate windows. How can I get each one to print to a 
jpeg file as the plots are produced? Alternatively, is it possible to 
get dev.print (jpeg.) to print all open graphics devices to separate 
windows?

Thanks in advance,

Nat Street
--
Nathaniel Street
 University of Southampton
   Plants and Environment Lab
School of Biological Sciences
Basset Crescent East
   Southampton
  SO16 7PX
tel: +44 (0) 2380 594387
 fax: +44 (0) 2380 594269
 [EMAIL PROTECTED]
http://www.soton.ac.uk/~nrs298
   ICQ: 203465793
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help