Displaying 20 results from an estimated 5000 matches similar to: "finding contours in a matrix"
2003 Aug 14
2
nls confidence intervals
Hi,
Does anyone know how to compute the confidence prediction intervals for
a nonlinear least squares models (nls)?
I was trying to use the function 'predict' as I usually do for other
models fitting (glm, lm, gams...), but it seems that se.fit, and
interval computation is not implemented for the nls...
Cheers
Enrique
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fisheries Research Services,
Marine
2010 Nov 19
1
Using image/contour with unevenly spaced data...
Is it possible to plot unevenly spaced data with image/contour function?
Below is an example of the type uneven data that I'm trying to plot with
image/contour functions. For example, I would like to have the x-distance on
the x-axis and y-distance on the y-axis and then the temperature values
determine the color used. Unfortunately this data was sampled such that it is
not evenly
1999 May 10
1
dotted contour line for negative values?
I have a contour plot where the surface can take on positive and negative
values. I would like to use solid contour lines for positive values and
dotted contour lines for negative values. I saw a plot like this produced
by S-Plus before. Is there a way to do this with R? If not, can anyone
suggest a way to make interpretation of the contour plot easier? (Right
now, it is not clear if a set of
2011 Jan 19
2
spacing of color key in filled.contour
Hi all
I'm plotting colored contour maps using filled.contour. My levels
are very unevenly spaced, with, say, high resolution in the small
numbers but ranges that can be an order of magnitude or two larger in
absolute value compared to where the action takes place. Aside from
transforming the data, is there a way to control the color spacing in
the key to the right of the map? Right now I
2003 Jul 27
1
contourplot:how to get it to label all contours like 'contour'
Hi,
one of the nice things about contour is that it labels all contour lines.
contourplot only labels each particular elevation a single time.
i.e., if there are two contour lines corresponding to z = 45, it will only
label one of them.
is there a way to get contourplot to automatically label all the contour lines,
even those that are repeated?
i ask because i want to plot contour plots *w/
2002 Nov 04
1
Installing R under Unix (Solaris 2.6).
Hi,
I'm having trouble installing R. I'm sure this is a very simple problem but
I'm stuck. When running the ./configure script, to install R (version 1.6)
on Solaris 2.6, I get an error message at the end of the configuration
process "WARNING: f77 and cc
disagree on int and double. configure: error: maybe change CFLAGS or
FFLAGS?"
However, I have seen no documentation on
2010 Feb 20
1
Add lines (contours) to lattice wireframe plot
Hi,
I draw a surface corresponding to bivariate density of independent
variables (rho=0) using persp(). Then I add a contour line (i.e.,
circle in my case) at a particular density. Below is a minimal example
of what I have so far.
# Bivariate density
dnorm2d <- function(x, y, rho = 0) {
xoy = (x^2 - 2 * rho * x * y + y^2)/(2 * (1 - rho^2))
density = exp(-xoy)/(2 * pi * sqrt(1 - rho^2))
2009 Apr 08
1
vectors on top of contours, and lattice
OK, I needed to plot a set of vectors on top of a contour plot. I
figured out a way to do this. I create a panel function that calls
"larrows()" with arguments constructed from my vector data. Then, when
I go to do the contour plot, I call contourplot() with the "panel"
argument set to point to my newly created panel function.
So far, so good.
Now, I need to do a
2009 Feb 06
2
annotating a filled contours plot with a grid of points
Dear R-help members,
I am trying to plot annotate a filled contours plot (with filled.contour)
with a grid of points. I have read ways of annotating it with individual
points but not with grids in another matrix.
Any ideas?
Thank you very much.
Dario
___________________________________
Dario Martin-Benito
CIFOR-INIA
Dpto. Sistemas y Recursos
2000 Jun 13
1
contours/density lines in sm library
Hi,
I'm using R 1001 for Windows NT and the sm library. I'm trying to
create plots for my data set like Bowman and Azzalini have in Figure 1.8
(p. 9) of their book for my data (i.e. a contour plot for each group in my
data set and its all plotted on 1 plot).
The problem I'm having is that R is not drawing closed contour lines for each
group. Sometimes it does; other times it
2010 Sep 13
1
Dampening the spline interpolation for contours
Hello all,
I'm very new to R and am having some trouble with the results of the interp function. I'm trying to produce a chart roughly akin to a weather map with natural looking filled contours over a large region of the south pacific. I've got a list of points and values to be mapped to those points and I use the interp function as follows:
tab<-read.table("data.txt")
2011 Apr 15
1
Idetntifying nearest topographic contours to data points
Hi there,
I have two data sets, one of locations at different elevations (x,y,z) and
the other of points that make up topographic contours (also x,y,z). I have
used:
result<-apply(distppll(data2,cbind(topocon[-nrow(topocon),],topocon[-1,])),1,min)
where 'data2' are my measurement coordinates (x, y) and 'topocon' are my
topographic contours (x,y). While this gives me an output
2007 Dec 13
2
Overlaying trellis xyplot on contourplot
Friends: I wish to overlay data points on a contour graph. The following
example produces a nice contour plot, but I have not mastered the concept
of using panel functions to modify plots. Can someone show me how to
overlay the data points (given after contour plot statement) on the
contourplot?
--Seth
model <- function(a,b,c,X1,X2) # provide model
function for contour
2013 Jan 28
1
Adding 95% contours around scatterplot points with ggplot2
Hi all,
I have been looking for means of add a contour around some points in a
scatterplot as a means of representing the center of density for of the
data. I'm imagining something like a 95% confidence estimate drawn around
the data.
So far I have found some code for drawing polygons around the data. These
look nice, but in some cases the polygons are strongly influenced by
outlying points.
2010 Oct 11
2
filled.contour: colour key decoupled from main plot?
Dear R colleagues,
I am trying to plot some geophysical data as a filled contour on a continent map and so far the guidance from the R-help archives has been invaluable. The only bit that still eludes me is the colour key (legend) coming with filled.contour:
I prefer to generate my own colour palette, mainly based on the quantiles of tenths of the data in order to capture the whole range (of
2008 Sep 15
1
How to plot contours for joint density of 2 independently distributed r.v.?
X and Y are independently distributed random variables.
I would like to study the contours of the joint density of these two
variables.
Any function to call?
Thank you very much!
--
View this message in context: http://www.nabble.com/How-to-plot-contours-for-joint-density-of-2-independently-distributed-r.v.--tp19493126p19493126.html
Sent from the R help mailing list archive at Nabble.com.
2011 Jul 29
2
Changing font type within y axis labels
I wish place the following axis label in such a manner that some of the
text is plain and the scientific name is in italics (i.e. a mixture of
two font types)
Using plot:
mtext("Total Landings of Pecten maximus (tonnes)",font,=3, side=2,
line=3)
makes everything italic, but how do I apply the font change to only
"Pecten maximus"?
Rgds
Phil
2008 May 13
1
Bubble plot pie chart map
Hello,
I am currently trying to show the abundance of two species of
zooplankton within the North Sea as pie chart bubble plots. I followed
Werner Wernersen's advice in R help
(http://finzi.psych.upenn.edu/R/Rhelp02a/archive/48644.html) and used
Paul Murrell's paper "Integrating Grid Graphics Output with Base
Graphics Output" (in R News) to try and do this (using the gridBase
2004 Jan 31
1
about contour - get contour coordinates - exclude area display
Dear all,
I wonder about what could actually be possible with the function "contour":
1/ - the definition of contour lines is most often meaningless when the contours are drawn in areas where no real data points exist.
It can however happen that irregular distributions lead to more or less irregular clouds of data points. Interpolations (eg: loess
regression, GLM, etc...) are however
2006 Mar 30
0
Converting shapefiles to use in contour plots
Dear R-users,
I have imported a shapefile with depth contours for a sea:
depths<-read.shape("D://My Documents/BarentsSea.shp",dbf.data=T)
(This is in mercator projection)
**Is there a way to convert this shapefile into a format that it may be
plotted on a contour plot?**
I wish to add these contours onto a map (already coded using 'maps'
package) to map the sea contours