Displaying 13 results from an estimated 13 matches for "loehrke".
2008 Jun 10
3
fitting periodic 'sine wave' model
...t;-nls(y ~ A*sin(2*pi*F*x), start=list(A = 1, F = 1), trace=T)
# even this gave a max iteration error
r<-nls(y ~ A*sin(2*pi*F*x), start=list(A = 1, F = .5), trace=T)
I have a feeling I am approaching this incorrectly. Thank you all
very much for the guidance.
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
jloehrke at umassd.edu
T 508-910-6393
F 509-910-6396
2009 Sep 16
3
apply function across two variables by mult factors
...F
$f1==i & testDF$f2==j,1:2])
}
}
testDF
sessionInfo()
#R version 2.9.1 Patched (2009-08-07 r49093)
#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
School for Marine Science and Technology
University of Massachusetts
200 Mill Road, Suite 325
Fairhaven, MA 02719
jloehrke@umassd.edu
T 508-910-6393
F 508-910-6396
[[alternative HTML version deleted]]
2008 Apr 11
1
polygons on scatterplot3d
...,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 Assistant
Department of Fisheries Oceanography
School for Marine Science and Technology
University of Massachusetts
200 Mill Road, Suite 325
Fairhaven, MA 02719
jloehrke@umassd.edu
508-910-6393
[[alternative HTML version deleted]]
2007 Sep 07
1
tcl/tk help
...cltk)
Loading Tcl/Tk interface ... Error in fun(...) : couldn't connect to
display ":0"
Error : .onLoad failed in 'loadNamespace' for 'tcltk'
Error: package/namespace load failed for 'tcltk'
Is there an explanation to this problem? Thank you very much.
Jon Loehrke
Fisheries Graduate Research Assistant
School for Marine Science and Technology
UMASS-Dartmouth
838 S. Rodney French Blvd.
New Bedford, MA 02744
Phone: 508-910-6393
Fax: 508-910-6396
2007 Sep 27
1
crashing R through lattice
...(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
Fisheries Graduate Research Assistant
School for Marine Science and Technology
UMASS-Dartmouth
838 S. Rodney French Blvd.
New Bedford, MA 02744
Phone: 508-910-6393
Fax: 508-910-6396
2009 Jun 12
2
Automate a data load and merge
...# Any help to automate this process is greatly appreciated!!!
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
School for Marine Science and Technology
University of Massachusetts
200 Mill Road, Suite 325
Fairhaven, MA 02719
jloehrke@umassd.edu
T 508-910-6393
F 508-910-6396
[[alternative HTML version deleted]]
2008 Mar 15
1
Conditionals for Errors or error flags
...on(x){
if(IS.ERROR(do.something)){do.something.else}else{do.something} #or
flag error
}
run.prog(data)
#runs everything if there is an error it does not abort with error but
rather does something else that doesn't error and continues.
Thank you very much,
Jon
R 2.6.2
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
jloehrke at umassd.edu
508-758-6393
2007 Oct 07
1
Old packages to updated R
...uot;file path/oldpackages.csv", header=TRUE)
package.list$Package<-as.character(package.list$Package)
install.packages(c(package.list$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 02744
Phone: 508-910-6393
Fax: 508-910-6396
"Opportunity is missed by most people because it is dressed in overalls
and looks like work."
--Thomas A...
2008 Feb 05
2
maps and lattice
Is it possible to place maps onto lattice plots?
With basic plotting you can add a map to a plot
library(lattice)
long<-c(-69.2, -69.5, -70.1, -70.3)
lat<-c(41, 41.5, 43.2, 42.8)
plot(long, lat)
map('state', c("massachusetts"),add=TRUE)
but is it possible with lattice?
library(lattice)
factor<-c(1,1,2,2)
xyplot(lat~long|fact)
...now what?
I have looked at panel and
2009 Feb 10
1
lattice shingle with time and date format
...)
#In the lattice book there is this outline
bPlot<-plot(breaks)
dPlot<-xyplot(y~x|breaks, data=df)
plot(bPlot, position=c(0,0.65,1,1))
plot(dPlot, position=c(0,0,1,0.65),newpage=FALSE)
#The plot is ok, but the xaxis is in numeric 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
jloehrke@umassd.edu
> sessionInfo()
R version 2.8.1 (2008-12-22)
i386-apple-darwin8.11.1
locale:
en_US.UTF-8/en_US...
2008 Dec 07
1
custom panel help in lattice
...to xyplot doesn't work and results in an error "error
using packet"
xyplot(y~x|groups, data=test, groups=groups,
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 for Marine Science and Technology
University of Massachusetts
200 Mill Road, Suite 325
Fairhaven, MA 02719
jloehrke@umassd.edu
sessionInfo()
R version 2.8.0 Patched (2008-11-24 r47017)
i386-apple-darwin9.5.0
locale:
en_US.UTF...
2008 Nov 17
2
How to calculate the linear distance between 2 points
Deemed colleagues
I would appreciate your help with a sentence to calculate the linear
distance between 2 geographical points (coordinates in UTM).
In advance thnks for your attention,
--
Ricardo Bandin Llanos
rbandin@udec.cl
Estudiante - Magíster Cs. m. Pesquerías
Universidad de Concepción, Región del Bio-Bio, Chile
Celular: (0056-41) 97949957
[[alternative HTML version deleted]]
2008 Dec 04
2
Plotting a kriging on a map
Hi list,
Well, this time I’ve a doubt with mapping generation.
I was already able to read and plot shapefiles, plot point on this map. All
this without any problems, but now I want to do something that I think, only
Golden Software Surfer is capable of.
I would like to plot a kriging result on the existing map (map script
below). Well I looked for on the net, but I was not able to be sure of