similar to: overlaying text() onto image() or filled.contour()

Displaying 20 results from an estimated 11000 matches similar to: "overlaying text() onto image() or filled.contour()"

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,
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
2005 Apr 20
1
overlaying a contour line in a levelplot
Hello there, I am creating a series of images using levelplot but I also want to overlay a contour for a particular value as reference. Here is the levelplot command for the image: print(levelplot(d~x+y,data=t,cuts=20,scales=list(draw=F),xlab=NULL,ylab= NULL,col.regions=heat.colors(100)[100:1]),split=c(1,1,1,1),more=T) and then to add the contour plot (I only want a contour at level 5):
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:
2010 Nov 23
6
Filled contour plot showing labeled isolines?
Is it possible to create a contour plot with the isolines labeled. I know you can do this with Matlab. Argh! I tried creating a filled contour plot, then using par(new=T), followed by overlaying the contour plot on top. However, the placement of the filled contour plot and the contour plot do not align correctly. Any suggestions would be appreciated. Thanks, Jon -- View this message in
2012 Aug 09
2
How to overlay a global map on a filled contour?
I would like to plot some lat-lon data in a filled contour, and then overlay a map of the globe on top. I am trying something like this: filled.contour(lons, lats, glb.data, plot.axes={axis(1);axis(2);map(projection='rectangular',parameters=0,add =T)} ) The filled contour plots fine, and the map shows up, but only as a very tiny little black rectangle in a small area of the
2004 Jun 07
1
filled.contour - color palette so z=0 ONLY is blue
I am trying to create a topographic map of an island - the filled.contour function works fine except i am experiencing difficulty trying to represent the sea properly. Basically I want the default colour blue for any instance where z=0, if I simply use the default topo.color I get shades of blue for z values up to 220 metres. Is there a way in which I can specify terrain.color for all values of
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
2010 Nov 21
1
Alternatives to image(...) and filled.contour(...) for 2-D filled Plots
By any chance are there any alternatives to image(...) and filled.contour(...) I used Rseek to search for that very topic, but didn't turn over any leads... http://www.rseek.org/?cx=010923144343702598753%3Aboaz1reyxd4&newwindow=1&q=alternative+to+image+and+filled.contour&sa=Search&cof=FORID%3A11&siteurl=www.rseek.org%252F#1238 I'm sure there are some out there, but
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 #~~~~~~~~~~~~~~~~~~~
2005 Jan 14
2
contour and filled contour plots
Hello, I'd like to remove color bar from "filled.contour" plot. Is it possible and how? I also want to overlay "contour" plot on filled.contour but due to scaling of the "filled.contour" to account for the color bar, aspect ratio for "contour" is different from "filled.contour". Can this problem be solved? Thanks, Mark
2009 Feb 06
2
undesired grid in ps/eps outputs generated by filled.contour or image
Hi! Whenever I save a graphic in ps/eps format generated by filled.contour or image, an undesired grid is added to it (not visible on the X11 screen). For example: postscript("volcano.eps") filled.contour(volcano,col=gray(seq(0,1,,50)),levels=seq(min(volcano),max(volcano),,50)) dev.off() Any ideia how to eliminate this grid? Thanks, Rachel [[alternative HTML version deleted]]
2011 Feb 11
2
Using filled.contour and contour functions together
Dear R help contributors, I'd like to plot ground temperature with time on X-axis and depth on Y-axis on this datasets ( http://r.789695.n4.nabble.com/file/n3301033/NEdaily.csv NEdaily.csv ), and to do so I use the following commands: library(RSEIS) xNE <- seq(1, as.numeric(as.Date(max(NEdaily[[1]])) - as.Date(min(NEdaily[[1]]))), 1) yNE <- rev(c(-0.3, -0.5, -0.7, -0.9, -1.1,
2009 Jun 10
2
filled.contour as image
Hi, Is there a way to make the filled.contour() function produce a plot similar to the image() function? i.e. not have smooth contours but rather distinct "squares" corresponding to the different cells of the matrix. The reason I ask is because since image doesn't have an option to display colour bars it is a lot less useful. Cheers Muri Soares Department of Maths and Applied
2010 Oct 13
1
overlaying multiple contour plots
Dear All, I have 4 or 5 contour plots that I need to overlay. Currently they are maps showing hot and cold areas for specific elements. I would like to combine these plots into one map, where each color will correspond to a different element and you would be able to see the areas that each element occupies on this map. Is there a way to do this in 'R'? I am fairly new to this software, so
2008 Mar 13
2
Plot contour over filled contour
Dear R-users, I haven't found a way in the searchable archive to overplot a contour (lines) over a surface. I have a (n,m) matrix that represents sea surface temperature that I have plotted using image.plot(), filled.contour() or image(). I would like to overplot this image with some contour lines of mixed layer depth values(same size matrix). How can I do this? Any help is appreciated,
2011 Mar 02
1
pb with Date format using filled.contour
Hi R-help community, Can anyone tell me why, while using : x <- seq(as.Date("2001-01-01"),as.Date("2001-01-01") + nrow(volcano)-1,1) y <- seq(1, ncol(volcano),1) when I plot the volcano matrix with that command : filled.contour(x,y,volcano) the graph has a Date format on X-axis, ok ... ... but when adding a contour plot to the filled contour, using this
2007 Jan 19
1
x-axis in filled.contour
The filled.contour function gives me some strange output. What did I do wrong? x=seq(0,1,length=10) y=seq(0,1,length=10) z=array(rnorm(100),dim=c(10,10)) filled.contour(x,y,z) lines(0.4,0.8,type="p") abline(v=0.4,lty="dashed") the x-cooridnate of the line and the point is 0.4, but it's slightly above. This problem just appears with "filled.contour", so I guess
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)
2008 Aug 08
1
Axes in filled.contour plots
I am attempting to create a contour plot using R with this code: > contour <- as.matrix(read.csv("contour.csv", row.names=1, header=TRUE)) > library(gplots) > filled.contour(contour, main="Flume 1 Flow Velocities") Now this produces the image/plot that I am looking for perfectly. However, the both axes only go from 0 to 1 instead on of using the row and column