Displaying 20 results from an estimated 5000 matches similar to: "Smooth contour of a map"
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
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
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/
2012 Sep 05
1
Smooth contour of a matrix
Hi R users
I'm looking for a way to do a contour plot of the attached 2D matrix. Using
contour() gives me some ugly contour lines that I would like to smooth. Any
ideas?
oliverjack38
http://r.789695.n4.nabble.com/file/n4642291/param1-4.txt param1-4.txt
--
View this message in context: http://r.789695.n4.nabble.com/Smooth-contour-of-a-matrix-tp4642291.html
Sent from the R help mailing
2008 Dec 27
1
contour plot - smooth lines
Dear R-Users,
I am using 'contour' to plot a graph using values x,y and a matrix z.
I would like to obtain 'smooth lines' instead of no-smooth contour lines.
I tried with filled.contour too.
In a Post I found
yy <-predict(interpSpline(x, y))
I could use that method for each range that I want to plot but I hope
to find a easier method.
Thank you
Tommaso Letterio
DIAF - UniFi
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
2002 Dec 14
1
adding contour lines to a filled.contour
Hi all,
Does anybody know how to add contour lines to a filled contour plot?
I want to draw a single contour around values that are above a certain
level (e.g., significant). The problem I'm having is that since the
filled.contour command actually draws two plots (data and the key),
adding contour lines paints them over both plots.
Any suggestions?
Thanks, Andy
#~~~~~~~~~~~~~~~~~~~
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
2006 Feb 13
2
Plotting contour & filled.contour in one graph
Dear All,
I have a question on overlaying a filled.contour (e.g. on soil properties data) and contour (by elevation) in one graph. Both have the same z matrix dimension. I'm able to overlay both graph, but the plots dimension did not overlap well on the same plots. How can I have both filled.contour and contour on the same graph? The commands that I have written are as follows:
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 Mar 19
2
Center of Closed Contour
I am searching for a utility in R which will determine the mean location of
a closed contour and eventually record the location in an ASCII file. By
means of the contour utility in R, I am able to produce an image of a contour,
but I am seeking a procedure which will produce the coordinates of the
center of mass of the contour. From my actual set of data, the contour
utility will produce several
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
2009 Nov 22
1
contour(): lines & labels in different colours?
Greetings, All!
I want to draw contour lines in red, using contour(), but also
have the contour labels (for the level-values) in black so that
they will stand out against a coloured background already generated
using filled.contour() (the background shades from green at low
levels of "risk" to red at high levels).
In any case, contour labels in red are already somewhat inconspicuous
2012 Jul 03
1
saving contour() plot info
{ I think this message got rejected at the 1st attempt - trying again}
R 2.15.1 , windows XP
I have a very non-stationary bivariate time-series - say {xt,yt} t=1 ... lots.
I want to do a bivariate density contour-plot of the whole series and then step
through the series 1 second at a time plotting that second's {x,y} subset on top of the contour
plot and losing the previous
2001 Oct 04
1
sort data.frame and contour()
Dear all,
I would like to know if there is a function for sorting a data.frame based
on one column. sort() does it for a single vector but not for the whole
data. order() does it if there are relations between the columns but in my
case it is simply a data.frame.
Further, I would like to plot other data,
pop.size<- c(800, 800, 1500, 1000, 158, 300, 740, 250, 2000, 1500, 250, 700)
2011 Apr 08
1
asking about contour plot with R
I'm working in Rosario, Argentina, trying to plot some contours.
I found the function "draw.contour" created by James Forester at
R-bloggers. If you take a look at that function you'll see it's very
useful!
But I have a problem with it and James is trying to help me (but also
asked me to seek for more help) I hope you can help me (don't worry if you
can't):
Using
2012 Apr 03
1
A contour plot question - vis.gam () function in "mgcv"
Hi,
Please see the attached contour plot (I am sorry about the big file). This was created using the vis.gam() function in "mgcv" package. However, my question is somewhat broader.
In generating this figure, I first created the contours using vis.gam() and then I plotted the points. These point are plotted on top of the contours so that some of the contour lines are only partially
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:
2012 Apr 22
2
contour algorithm
First time user, so sorry if I don't understand protocol.. Anyway, I have
created a data frame consisting of pearson's R values at various x and y
coordinates and then plotted this using filled.contour. My data is similar
to fMRI data except that it is a surface map reconstructed from
histological sections. I like the results but would like to know how
contours were detected. Google search
2013 Sep 13
1
numerical issue in contour.default?
Dear R developers,
I found a small issue while plotting contours of data containing both
"usual" and "very small" numbers. It appeared with both R 3.0.1 and
R-Devel on Windows, and I could reproduce it on Linux. Would it be
possible to solve this before the upcoming release?
Thanks a lot for developing this great software!
Thomas
Example:
########
set.seed(357)
z1 <-