[R] apply function across two variables by mult factors

2009-09-16 Thread Jon Loehrke
: #en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 # #attached base packages: #[1] stats graphics grDevices utils datasets methods base Jon Loehrke Graduate Research Assistant Department of Fisheries Oceanography School for Marine Science and Technology University of Massachusetts 200

[R] Automate a data load and merge

2009-06-12 Thread Jon Loehrke
!!! sessionInfo() #R version 2.9.0 (2009-04-17) #i386-apple-darwin8.11.1 # #locale: #en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 # #attached base packages: #[1] stats graphics grDevices utils datasets methods base Jon Loehrke Graduate Research Assistant Department of Fisheries Oceanography

[R] lattice shingle with time and date format

2009-02-10 Thread Jon Loehrke
and not date # Jon Loehrke Graduate Research Assistant Department of Fisheries Oceanography School for Marine Science and Technology University of Massachusetts 200 Mill Road, Suite 325 Fairhaven, MA 02719 jloeh...@umassd.edu sessionInfo() R version 2.8.1

Re: [R] Question about the rgroup option in Hmisc latex function

2008-12-30 Thread Jon Loehrke
Hi Ista, I think you looking for: n.rgroup? See help(latex). Also, try posting your example in a copy and past form, like: descriptives-data.frame(n=..., mean=...) etc. The easier it is for others to reproduce your initial results the quicker the problem will be solved. HTH, Jon

[R] custom panel help in lattice

2008-12-07 Thread Jon Loehrke
, panel=function(...){ panel.xyplot(...) panel.smooth.spline(...) }) I think this should be quite simple but I must be too simple minded. Thanks for any help. Jon Loehrke Graduate Research Assistant Department of Fisheries Oceanography School

Re: [R] Plotting a kriging on a map

2008-12-05 Thread Jon Loehrke
(cov.pars=c(1, .25))) #can fine tune color.palette-rainbow #use heat etc. contour(kc,asp=1, col=col- c(#F,color.palette(length(levels)-1)) , add=TRUE) #makes 0 counts white You could also use image or other 3d graphics. Hope that Helps, Jon Loehrke Graduate Research Assistant Department

Re: [R] How to calculate the linear distance between 2 points

2008-11-17 Thread Jon Loehrke
from North in deg. S } Jon Loehrke Graduate Research Assistant Department of Fisheries Oceanography School for Marine Science and Technology University of Massachusetts 200 Mill Road, Suite 325 Fairhaven, MA 02719 [EMAIL PROTECTED] T 508-910-6393 F 508-910-6396 [[alternative HTML

[R] fitting periodic 'sine wave' model

2008-06-10 Thread Jon Loehrke
. Jon R 2.7.0 mac os 10.5 Jon Loehrke Graduate Research Assistant Department of Fisheries Oceanography School for Marine Science and Technology University of Massachusetts 200 Mill Road, Suite 325 Fairhaven, MA 02719 [EMAIL PROTECTED] T 508-910-6393 F 509-910-6396

[R] polygons on scatterplot3d

2008-04-11 Thread Jon Loehrke
(80,20,30,30,10) p3d-scatterplot3d(long, lat, weight, angle=75, type='h', box=FALSE, asp=1, grid=FALSE) p3d$points3d(coast$x,coast$y,rep(0, length(coast$x)), type='l', col='gray') # Now how to fill this polygon...? Cheers, Jon Mac OS 10.5 R 2.6.2 Intelligence Finite Jon Loehrke Graduate Research

Re: [R] polygons on scatterplot3d

2008-04-11 Thread Jon Loehrke
this polygon...? Begin forwarded message: From: Jon Loehrke [EMAIL PROTECTED] Date: April 11, 2008 3:01:03 PM EDT To: r-help@r-project.org Subject: polygons on scatterplot3d Does anyone have any experience plotting complex polygons on a scatterplot3d display? I would like to present some

[R] Conditionals for Errors or error flags

2008-03-15 Thread Jon Loehrke
10.5 Jon Loehrke Graduate Research Assistant Department of Fisheries Oceanography School for Marine Science and Technology University of Massachusetts 200 Mill Road, Suite 325 Fairhaven, MA 02719 [EMAIL PROTECTED] 508-758-6393 __ R-help@r-project.org

[R] Old packages to updated R

2007-10-07 Thread Jon Loehrke
$Package)) #wait awhile and ignore errors for base packages. system: Mac powerbook intel duo. Latest OS R 2.60 [now, thanks to everyone involved] Jon Loehrke Fisheries Graduate Research Assistant School for Marine Science and Technology UMASS-Dartmouth 838 S. Rodney French Blvd. New Bedford, MA

[R] crashing R through lattice

2007-09-27 Thread Jon Loehrke
, layout=c(2,2),# where c=# of columns, R=Number of rows main=list (QQnorm plot for …., cex=0.8), sub = list(,cex=.8), xlab = Unit Normal Quantile, ylab=list (variable in x units, cex=.8)) Thanks, Jon Jon Loehrke