Displaying 20 results from an estimated 9000 matches similar to: "pb with Date format using filled.contour"
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 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]]
2003 Sep 25
1
multiple plot layout and filled contour
Hello everybody,
Could anybody give me a hint how I can use "layout" and "filled.contour" (or "image"
plot with a color legend) together, please?
What I want to do is something like the following example (Two or more plots with a
legend for each at one page):
data(volcano)
layout(matrix(1:2, 1, 2, byrow = TRUE))
for (i in 1:2) {
filled.contour(i*volcano, color =
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
2008 Aug 05
1
Add arrows to a filled.contour margin
Hi,
I try to put an arrow to a filled.contour plot. I make this:
filled.contour(volcano, color = terrain.colors,key.axes=F)
arrows(0.95,0,0.95,1,lwd=2)
This work, but the problem is that I find the coordinates at random try, for
other graphic with other scale is other fight with coordinates. Anybody know
a more easy or more generalized way to make this? Somethink like this
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
2009 Feb 28
2
filled.contour and time axis
Dear all,
I am using filled.contour and my x-axis consists of a vector of dates,
formatted using as.POSIXct.
When I assign this vector to x in filled.contour, the x-axis in the plot is
correctly formatted as dates.
However, when I use plot.axes=axis(1) in filled.contour the x-axis is not
correctly formatted. I need to opt for the latter because I want to add
additional lines and points to the
2008 Feb 17
2
filled.contour with log axis
Dear all,
I would like to generate a filled.contour plot with log x and y axis,
however using:
filled.contour(as.line,log="xy")
results in a warning message.
Does anybody knos what to do?
Thanks
Thomas
1999 Dec 03
1
filled.contour (PR#357)
Full_Name: Detlef Steuer
Version: 0.90.0 and 0.99.0
OS: linux
Submission from: (NULL) (129.217.206.26)
filled.contour does not work on my machine in versions 0.90.0 and 0.99.0
I always get: Error in plot.new() : Figure margins too large
Here an example from help(filled.contour): ( same message for 0.99.0)
R : Copyright 1999, The R Development Core Team
Version 0.90.0 (November 22, 1999)
R is
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
1997 Apr 17
2
R-alpha: R-0.50.b6: bug in graphics demo
The line
contour(volcano, x, y, l, col = "yellow", lty = "solid", add = TRUE)
needs to be changed to
contour(x, y, volcano, col = "yellow", lty = "solid", add = TRUE)
A patch is appended below.
-k
*** demos/graphics/graphics.orig Thu Apr 17 11:02:39 1997
--- demos/graphics/graphics Thu Apr 17 11:03:08 1997
*************** plot(numeric(0), numeric(0),
2010 Sep 06
1
extracting x,y coordinates from a contour plot
Requisite info: R version 2.11.1 (2010-05-31) running on a 64 bit HP Windows
7 machine.
Greetings, R-ians:
I have used contour() for several years. Now I would like to extract from a
contour plot the x, y coordinates of a contour z=constant. This seems as
though it would be straight-forward but I''ve been unsuccessful in my
searches of CRAN.
Can anyone provide a hint?
2009 Sep 05
8
Color index in image function
Dear All,
I was looking for the color index in?image function,?such as from topo.colors(n) and etc. but still never found it. For instance, from the help menu.
###########################################
# Volcano data visualized as matrix. Need to transpose and flip
# matrix horizontally.
image(t(volcano)[ncol(volcano):1,])
# A prettier display of the volcano
x <- 10*(1:nrow(volcano))
y
2010 Jan 04
2
Adding a distance scale to a plot?
Do you know what steps I need to take to add a scale to a plot?
I'm pulling my example out of "An Introduction to R: Software for StatisticalModelling & Computing" (see the R code around Figure 76).
I would like to add a scale to the image produced by the following code.? I would like to the scale to list the distance?and units:?
data(volcano)
x <- 10*(1:nrow(volcano))
y
2009 Feb 06
2
annotating a filled contours plot with a grid of points
Dear R-help members,
I am trying to plot annotate a filled contours plot (with filled.contour)
with a grid of points. I have read ways of annotating it with individual
points but not with grids in another matrix.
Any ideas?
Thank you very much.
Dario
___________________________________
Dario Martin-Benito
CIFOR-INIA
Dpto. Sistemas y Recursos
2002 Oct 10
1
contour in lattice
Hi
I'm using lattice's function levelplot but when I choose the flag
contour =TRUE I get very strange results. It looks like the contour
lines have nothing to do with the "image" plot under ...
Is there some known problem with this function ?
Regards
EJ
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
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 12
1
contour lines for levelplot
Hi,
I would like to add contour lines to a (trellis/lattice-) levelplot.
Sure, there is the "contour=TRUE" argument, but this uses
"cuts=..." (which is usually chosen very high for my plots. I guess
cuts=99 is the best you can do (?)) for plotting the contour lines.
Furthermore, I do not like the numbering of the contour lines this
way. Therefore, I tried to add a
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
#~~~~~~~~~~~~~~~~~~~