Displaying 20 results from an estimated 60000 matches similar to: "GRAPH"
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:
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
2003 Jul 13
2
Coloured 3d surface
Hello,
I created a 3d surface (persp) with some points overlaid on it, which is
fine. Now I have a second set of z-values(x,y-values same as the first
surface), which I would like to make visible on the same graph, however,
not as a surface, but rather as coloured contour on the first surface,
so that the resulting graph will consist of the original surface having
the colour of the second
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,
2010 Mar 17
1
Cropped graph using lattice
I'm fitting data from a mixture experiment, and I'd like to present the results in a ternary graph with contours. I found this code by Walmes Zeviani
http://n4.nabble.com/Triangular-filled-contour-plot-td1557386.html
which is just what I want--except I would like the axis titles and labels to be proportionately larger than the ternary graph itself, for legibility in publication. When I
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
2008 Jul 16
2
Labelling curves on graphs
Hi Folks,
I'd be grateful for good suggestions about the following.
I'm plotting a family of (X,Y) curves (for different levels
of another variable, Z): say 6 curves in all but could be
more or less -- it's a rather variables situation.
I'd like to label each curve with the value of Z that it
corresponds to.
The problem is that the layout (shapes, spacings, ranges
of X over
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
2005 Mar 21
1
Sv: Using locator() to digitise
Hi,
Splus allows pasting a graphics object into the plotting window, which makes it possible to do what you describe below.
Now I use R which doesn't seem to allow pasting the picture into the graphics window, so I copy the graph onto a transparency
sheet, and stick it onto my screen using tape. The coordinates need to be converted to make sense (as you describe).
My methodology with the
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
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):
2003 Jun 13
1
Lattice levelplots and (partial) failure on some devices ----Long
Dear Community,
(win XP home, sp1; R1.7 -- patched version, binary download, version of
lattice obtained with patched version; the following applies to 1.6.2 as
well.)
The following message was originally composed to seek help. However I
have 'hacked' a solution to the following behavior, but none the less
someone might find this interesting.
To reproduce my 'problem' you
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 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 Apr 18
1
R - fault creating a 3D and contour graph (SIGABRT)
Hello,
when I tried to create 3D graph from attached file (at first: columns 1,
2, and 3 (longitude, latitude, altitude), then columns 1, 2 and 4 , then
the same for column 5 etc) using Akima library for 3D interpolation (the
data are neither equidistant nor regularly distributed), the console
crashed by SIGABRT fault response.
Do you know what is the main problem? Otherwise, can you advise me the
2004 Dec 01
1
Manipulating contour plots
Dear R users,
I would like to create a filled.contour plot with colour bar and overlay
a map.
I need to create several of these representing variables with different
spatial extents for comparison. When I try to fix the plot area size and
axes limits as follows:
par(fig=c(0,1.0,0.3125,1.0)
filled.contour(x=seq((320/2)-180.5,(480/2)-180.5,len=nrow(oct94)),
2006 May 10
3
Contour plot overlayed with line plot
I apologize for what may be a newbie question: I have two sets of data, one
is X,Y,Z data that I'd like to make a contour plot of (Z defining the
contours), and a second set of X,Y data (Y as a function of X) which I would
like made into a line plot OVERLAYED on the contour plot (X and Y from both
plots are in the same units and will have overlapping values). Any
suggestions on how to do this
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
2001 Nov 12
1
Filled Contour.
Hi.
I'm a big user of level plots. Because filled.contour() didn't do exactly
what I wanted, I hacked at it a bit to add these options:
(*) Even spacing in the key, even if the contours are not evenly spaced.
(*) Horizontal key
(*) options to not use layout() and to plot only the level plot _or_
only the key. This means you can use layout yourself to (e.g.)
have several
2010 Aug 11
2
question on contour function
Dear All,
I tried to plot contour lines using R function contour, but got the results
which are not expected.
require(RTOMO)
x <- seq(-1,1,0.1)
y <- seq(-1,1,0.1)
xy <- meshgrid(x,y)
z <- xy$x^2+ 3*xy$y^2
contour(x,y,z,col="blue",xlab="x",ylab="y")
The above code gave me the contour graph for z=3*x^2+y^2 rather than
z=x^2+3*y^2. Is anyone know the