Displaying 20 results from an estimated 10000 matches similar to: "[Mailman] question: contour plot for discrete data"
2001 Feb 05
1
get vector data from contour
I have carried out a spatial interpolation (Kriging) using surf.gls()
The contour plot looks very plausible and the image plot is o.k too.
The problem is, hovever, that I need the vectorized isoplethes, as in
contour().
Unfortunately, I found no solution to get the internal data from
contour().
Is there a possibility to extract contour lines as x-y-polygon from a
grid without hacking plot3d.c?
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:
2004 May 06
1
Problem with filled.contour/image
Quick question - I am having problems creating an orographic image
(similar to volcano example). I have created a map matrix with 3 columns
and over 2million rows.
I have created the matrix as follows:
map<-read.table("map.dat",header=TRUE)
long.grid<-sort(unique(map$long)
lat.grid<-sort(unique(map$lat)
map.matrix<-matrix(map$height,nrow=length(lat.grid),byrow=TRUE)
The
2003 Aug 13
1
Contour plot for arbitrary (x,y,z)
Hello.
Is there an easy-to-use contour plot function analogous to scatterplot3d
that can draw handle a dataset of arbitrary (x,y,z) triplets? That is,
say x, y, and z are each measured quanties, and exhibit neither order
nor regularity.
I looked at the lattice package function "contourplot" but it seems
complicated, and it's not clear from the documentation whether it can
2005 Feb 09
2
[Fwd: Re: Fw: Contour plot]
Petr,
It works perfectly! But I still have a question;
I have fit the following data;
x,y,z
1,10,11
2,11,15
3,12,21
4,13,29
5,14,39
6,15,51
7,16,65
8,17,81
9,18,99
10,19,119
>dat.lm <- lm(z~I(x^2)+y, data=dat)
>dat.lm
Call:
lm(formula = z ~ I(x^2) + y, data = dat)
Coefficients:
(Intercept) I(x^2) y
1.841e-14 1.000e+00 1.000e+00
How do I create the
2013 Mar 08
3
2D filled.contour plot with 1D histograms by axes
Hi everyone,
I hope this question is beyond "read the manual". My task is simple, just
to plot the following, but the plot in the middle should be a
filled.contour plot:
http://gallery.r-enthusiasts.com/graph/Scatterplot_with_marginal_histograms_78
Background: I prefer filled.contour rather than hist2d. Because, I could
use kernel smooth, so the plot for discrete data won't be too
2004 Jan 14
1
arrows on contour lines
Hello everybody
I'm using contour() to draw streamlines of potential flow, eg
jj <- seq(from= -4, to=4,len=20)
jj <- outer(jj,jj,function(x,y){x})+1i*outer(jj,jj,function(x,y){y})
f <- function(x){x^2}
contour(Im(f(jj)), nlevels=44 , labels="")
How best to put arrows on the contour lines to show the direction of flow?
(ie I want contour lines looking like
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 Feb 15
2
How to plot image of contour in percent?
I have searched this forum with keywords contour and percent, it only
give one irrelevent result.
My problems is how to plot contour in percent.
In my figure, I have use kde2d to generate density of an array with
two dimension point.
Using image and contour could plot it.
But the line contour generated represent absolute value of population,
not how much pecent point within this cycle.
So, i there
2004 Feb 23
1
border of a polygon in contour.kriging - geoR
Dear all,
When a conventional kriging and then a contour plot is limited with a polygon (as possible with krige.conv and contour.kriging), the
polygon border is displayed in black by default.
> kc<-krige.conv(CZdata,loc=pred.grid,borders=czpoly,krige=krige.control(obj.m=ls))
> plot(CZcoord,xlab="x",ylab="y",type="n",asp=1)
>
2008 Jun 26
3
using contour() with x,y,z data?
Hello list,
I'm new to R and I have a problem :-) Below is what my data file that looks
like. I tried to import and contour this data by doing this:
cv_data <- read.table("cv_data.csv",sep=",",header=TRUE)
attach(cv_data)
contour(x,y,z)
I get the error "Error in contour.default(x,y,z) : increasing 'x', and 'y'
values expected" I
2012 Feb 09
2
Lattice 3d coordinate transformation
Hello List!
I asked this before (with no solution), but maybe this time... I'm
trying to project a surface to the XY under a 3d cloud using lattice.
I can project contour lines following the code for fig 13.7 in
Deepayan Sarkar's "Lattice, Multivariate Data Visualization with R",
but it fails when I try to "color them in" using panel.levelplot.
?utilities.3d says there
2003 Jan 15
2
Contour Plots
r-help,
I can't seem to get the below data organized in such a manner so as to
generate a contour plot
using any of the functions {lattice.contourplot, base.contour,
base.filled.contour}. I was wondering
if anyone could please tell me what I need to do to accomplish this.
X,Y,Level
-31.105,86.911,3843
-3.385,86.911,3896
24.335,86.911,3874
-24.175,79.700,3900
-3.385,79.700,3927
2011 Apr 01
1
filled contour plot with contour lines
I'm stumped, can anyone find my error in this sequence.
for(j in 1:(varsize[4]-1))
temp <- get.var.ncdf(nc=input,
varid="p_foraging",c(1,1,j),c(varsize[1],varsize[2],1))
filled.contour(x, y, temp, color = terrain.colors,
plot.title = title(main = paste("Everglades Wood Stork
Foraging Potential \nYear", (2000+j)),
xlab =
2004 Mar 02
1
filled contour
Hello,
how can I fill map contour with R without setting the legend. I cannot see an
option to skip the legend for filled.contour.
Thank for your response.
2005 May 16
2
Fitting Contour to Data Points
Apologies for the mass mailing today!
I am attempting to produce a contour plot for phsical data on a map
matrix. I have a small number of data points which each has an (x,y)
co-ordinate together with a corresponding value which I would like to
cvreate a contour plot for.
I have tried the following code:
contour(data$x,data$y,data$value)
but am told:
Error in contour.default(data$x, data$y,
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
2012 Feb 03
1
Contour plot with messy field data.
Hello,
I have some data that will be in the form:
structure(list(station = structure(c(20L, 2L, 4L, 19L, 3L, 11L,
1L, 5L, 10L, 12L, 17L, 18L, 6L, 9L, 13L, 16L, 7L, 8L, 15L, 14L
), .Label = c("1", "10", "11", "12", "13", "14", "15", "16",
"17", "18", "19", "2", "3",
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
2012 Feb 29
2
Contour plot
Hi, I would like to make a contour plot with the data below, x-axis= Day
(increasing order, day number is out of 365 days of a year), y-axis= Depth
(varies), and z=pH. I tried to use filled.contour function, but not sure the
proper way to ordinate my z results into a matrix with different x and y
length. After that, if I attempted to plot the data, the x and y values are
not in ascending