Hi,

Is there any simple way to get histogram for different levels of factor?

Say you have the following data set:
  
 Island Sp.diam  
 Moorea 1.21  
 Moorea 1.27  
 Moorea 1.28  
 Moorea 1.22  
 Moorea 1.28  
 Rurutu 1.5  
 Rurutu 1.67  
 Rurutu 1.75  
 Rurutu 1.55  
 Rurutu 1.7  
 Rurutu 1.55  
 Rurutu 1.59  
 Rurutu 1.66  
 Rurutu 1.7

Is there anything better than:

> hist(Sp.diam[factor(Island)=="Moorea"],main="Island=Moorea")

followed by

> hist(Sp.diam[factor(Island)=="Rurutu"],main="Island=Rurutu")

Sorry for this very stupid and basic question...

Thanks for any help,

Sylvain.

---------------------------------------------------------------
Sylvain Charlat
[EMAIL PROTECTED] / [EMAIL PROTECTED]
http://www.ucl.ac.uk/~ucbtghu/Sylvain.htm
- Department of Biology, University College London
  4 Stephenson Way, London, NW1 2HE, UK
- Fieldwork address:
  Gump Station, University of California Berkeley
  BP 244 Maharepa, 98728 Moorea, French Polynesia
- Phone (Moorea): (+689) 56 43 97 or 26 90 18 or 56 52 87
- Fax (Moorea): (+689) 56 32 72
- Phone / Fax (London): (+44)20 76795072 / +(44) 20 76795052
---------------------------------------------------------------




        

        
                
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to