Displaying 20 results from an estimated 9000 matches similar to: "smoothed contour lines"
2011 May 23
3
Get contour of a map
Hello everybody,
I search a function which returns the contour of map with levels like contourLines, but I would like this function return the border of the map too, because the function contourLines cannot consider the corner of the map and it is not adapted to fill polygon after that.
Thanks in advance
Pierre Bruyer
2004 Nov 04
1
Labelling contour lines
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
2007 Jul 24
3
Overlaying a single contour from a new data array in levelplot
Dear R-Help community,
I am trying to overlay a single contour line over a correlation plot using
levelplot in the lattice package. These are the two arrays:
1) a correlation plot over Africa - so each grid square is a different colour
dependent on correlation - this is in an array: result_cor with dim[465,465]
2) a single contour line from a ***different data source*** - this is from data
2009 May 13
1
overlap contour
Friends,
I have two covariance matrices (m1 and m2) of same size (150x150). I used
contourplot function to make contour plots individually (c1 and c2). I am
interested in making one contourplot overlapping the two individual contours
so that the portion of the plot above and below the diagonal can represent
the c1 and c2. Someone suggest me how can i do the same.
Is there any way that i can
2006 Feb 10
1
the proper way to use panel functions in lattice package?
Hi,
I was trying to stack a topographic map readed in from esri shapefile with a
contour map and a vector map. However, the plotMap(maptools) and
contourplot(lattice) do not seem to work well on top of each other. Here is
part of my code.
xrange<-range(225000:350000)
yrange<-range(2685000:2810000)
basemap <- read.shape("Twn25_town_dxf_Polygon.shp")
2009 Aug 19
1
Lattice: Drawing a single contour line with a negative value fails
Hi everybody,
I want to add a single contourline to a levelplot. While everything
works fine if the value at which the line should be drawn is positive,
there is an error if the value is negative:
library(lattice)
my.panel <- function(..., at, contour=FALSE, labels=NULL) {
panel.levelplot(..., at=at, contour=contour, labels=labels)
panel.contourplot(..., contour=TRUE,
2008 Apr 23
4
filled contour plots
hello everyone,
I was wondering if anybody can help me solve 2
problems related to the function filled.contour.
I am entering the following R command:
filled.contour(xx,yy,P1, nlevels=20,color=cm.colors,
plot.axes={
contour(xx,yy,P1,add=T,col="grey",
nlevels=20, drawlabels=F)
axis(1,1:length(xx),labels=xlabels)
2009 Oct 22
1
contour() & contourLines()
Hi Folks,
I have been using contour() to produce some contour plots
(of a spatially-smooted density produced by kde2d()), with
very satisfactory results.
I now want access to the coordinates of the points on the
contours, and it would seem that contour() does not return a
value, so there is nothing from which these could be extracted.
However, apparently contourLines() does, and it seems to be
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/
2013 Feb 14
1
Clip a contour with shapefile while using contourplot
Hi, I have done the interpolation for my data and I was able to create the
contours in multipanel with the help of Pascal. Now, I want to clip the
contour with the shapefile. I want only the portion of contour to be
displayed which falls inside the boundary of the shapefile.
The data mydata.csv can be found on
https://www.dropbox.com/s/khi7nv0160hi68p/mydata.csv
The data for shapefile can be
2011 Dec 22
1
overlaid filled contour plots
I'm trying to make a set of contour plots of bivariate kernel density
estimates, showing three such plots overlaid,
similar to this plot
http://euclid.psych.yorku.ca/SCS/Private/Test/ridge-boot2.pdf
except that I would like to have the contours *filled* (using
transparent colors). To make this reproducible, I've
saved the results of KernSmooth::bkde2D() in the following file:
2010 Sep 27
1
smooth contour lines
Is there an easy way to control smoothness of the contour lines?
In the plot I am working on due to the undersampling the contour
lines I am getting are jugged, but it is clear "by eye" these should
be basically straight lines.
In maps package I found smooth.map function, but maybe there is a more
generic way
of accomplishing the same thing.
Ideally there would be an option to control
2005 Feb 08
2
Fw: Contour plot
I understand that I need to have a (in this case) square matrix with all the
data. But the question now is;
- can the contourplot not interpolate the missing values
or alternatively
- I have fit a model to the z data (z = 100 + 0.5x + 0.5y). How can I make
from this model a "square" matrix z to make a contour plot?
Kind regards, Darius Blaszijk
----- Original Message -----
From:
2009 Nov 19
2
plot filled.contour over continent map
Dear all,
As a newbie in R I would like to do the following (simple?) thing:
to plot a filled.contour plot over a map showing country boundaries (e.g. for Europe)
What i do is:
map('worldHires',xlim=c(-10,40),ylim=c(35,70),boundary = TRUE,border=0.1)
map.axes()
filled.contour(mslp, zlim=c(1000,1020),color.palette = colorRampPalette(c("blue", "white",
2009 Mar 15
1
Contour plots of four two-dimensional matrices
I have four large two-dimensional matrices of which I want to create contour
plots. Something like
filled.contour(<matrix>)
contourplot(<matrix>)
works but only gives me one plot at a time. If I combine the four matrices
into one three-dimensional matrix, which I'll name "seven", there should be
a way of doing something like this
contourplot(seven[,,k] for k in 1 to 4)
2010 Jun 22
1
contour plots
Hi All,
I'm having difficulty making a contour plot a would like some help.
A standard contourplot can be made by having an x,y, and some matrix (shape
x*y) with contents:
x = 1:10
y = 1:10
cont <- matrix(runif(100,min=1,max=2),nrow=10,ncol=10)
filled.contour(x,y,cont)
Looks very nice.
Sometimes data comes in a different format however. Basically an x and an y,
and a vector z with all
2005 Feb 08
3
Contour plot
Hello,
I would like to make a contourplot of the following data;
> x <- 1:10
> y <- 1:10
> z <- 100:110
By doing >contour(x,y,z) I get the following error;
"Error in contour.default(x, y, z) : no proper `z' matrix specified"
How do I fix this??
Kind regards, Datius Blaszijk
[[alternative HTML version deleted]]
2009 Nov 28
3
extract coordinates from contour lines
To everyone,
Is there a way to extract coordinates or an equation from a "straight" contour line?
Thanks.
Cheers
Julius Tesoro
2010 Sep 15
2
Contour line coordinates
Hi all,
I used contour() to add contour lines to a plot. Now I?m wondering if there is a way to get an output of the calculated x- and y- coordinates of the contour lines?
Tonja
2008 Oct 01
1
Please help me to produce smoothed contour plots
Please help me to produce smoothed contour plots.
I have dependent data generated at regular intervals of two independent
variables and would like to produce smoothed contour plots - I cannot get
interp (alima) to produce cubic interpolations of the data, only linear
ones. I'm interested in smoothing as the data generation process is
stochastic and produces small variations which I'd