similar to: Contour plots of four two-dimensional matrices

Displaying 20 results from an estimated 10000 matches similar to: "Contour plots of four two-dimensional matrices"

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/
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
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
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
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:
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
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",
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
2008 Aug 25
1
contour plots
Hello, I want to make a contour plot. I have a matrix (nrow=4,ncol=58) . and two lists, one with 4 values (the depths) and one with 58 values (time in days)( Depth (should be later on the y-axis),and Time(should be later on the x-axis)) In the matrix there is the temperature for a specified depth and time. there are missing values (NAs). I also put ranges for x-,y-,zlim. I
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
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 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
2004 Jun 07
1
contour lines on levelplot?
With "image" and "contour", one can get both colors and lines to enhance the image of a contour plot. What's the best way to do this with Lattice graphics? The following is one ugly hack, producing the desired result after much trial and error (R 1.9.1 alpha under Windows 2000): # setup DF <- expand.grid(x=1:3, y=1:3) DF$z <- (DF$x+DF$y) # Traditional
2009 Jan 06
3
smoothed contour lines
Hi all, I'm trying to draw a contour plot with rounded (smoothed) contour lines instead of sharp angles; when the grid consists of only a few points in x- and y- axis, the resulting contour is in facts rather ugly since very sharp angles may appear. I did not find any way to do it, by using either "contour" or "contourplot" (from the lattice package), I wonder if there
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
2004 Aug 06
1
: (Lattice): Overlaying more than one trend surface using contourplot() and wireframe()
Hi, Is there a way to plot more than one trend surface using the functions contourplot() and wireframe(). I have found an add=T in contour(), but no equivalent argument in contourplot() and wireframe()? I have taken the example 11-2 (pages 441-451) from Design and analysis of experiments (Montgomery 2001, 5th edition) to see if this could be done in R. I have managed to plot individual
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")
2010 Jul 10
1
contourplot by year
Hi - I have a dataframe with 4 variables - long, lat, temp and year. I would like to plot temperature by lat and long in contour plots by year. There are 391 data points. When I try contourplot(temp~long*lat|year,data=hake,cuts=10,labels = TRUE,contour = TRUE,pretty = TRUE,region=TRUE) I get plots with dots around by data, but not contour lines or filled in regions. I have also used the
2011 Feb 20
2
Same color key for multiple lattice contour plots
Hi all, I'm trying to make multiple lattice contour plots which have the same color key, to allow good comparisons. However, I run into some problems when fitting the plots to the color key. Basically my strategy to tackle this problem was: 1) define a color key for all plots; 2) calculate the variable range for each plot; 3) calculate the range of colors from the color key that correspond
2008 Dec 03
1
how do I eliminate excess levels in lattice contourplot key / legend?
I'm working on a contourplot( ) graph, the subject of several previous posts to this list. The contours express probabilities from 0 - 1, but the key that is automatically generated by contourplot pads the probability scale with values that are impossible (i.e, range goes from -0.2 to 1.2), which will be confusing to those who view the plot. How can I get the scale to just run from 0 - 1?