[mailto:r-help-boun...@r-project.org] On
> Behalf
> Of ivo welch
> Sent: Saturday, November 16, 2013 11:40 AM
> To: r-help
> Subject: [R] contour plot axis correspondence
>
> I am struggling with a contour plot. I want to place a cross over the
> minimum. alas, I don
I am struggling with a contour plot. I want to place a cross over the
minimum. alas, I don't seem to be able to map axes appropriately.
here is what I mean:
N <- 1000
rm <- rnorm(N, mean=0.0, sd=0.4)
rx <- rnorm(N, mean=0.0, sd=0.4)
rt <- rnorm(N, mean=0.0, sd=0.4)
exploss <- function(hdgM,hdg
On Oct 10, 2012, at 7:58 AM, namrata mohapatra wrote:
> Hello
>
> I am interested to plot a contour plot using the colour : rainbow , however I
> want to reverse the order of the colour ( such that red represents max value
> and blue min value) and also remove the lines in white in the plot .
On Feb 29, 2012, at 7:08 PM, Leong Keat Chan wrote:
Hi, I would like to make a contour plot using R with the following
information (data at the end): x-axis= arranged according to day
(from 1 to 365, labels= use
I am really getting tired of seeing this message. This must be the
fourth du
Hi, I would like to make a contour plot using R with the following information
(data at the end): x-axis= arranged according to day (from 1 to 365, labels=
use months; up to 365 days in one year), y-axis= depth (labels from 0 at the
top to 7 at the bottom; this is a water depth profile), and z-a
Hi, I would like to make a contour plot using R with the following information
(data at the end): x-axis= arranged according to day (from 1 to 365, labels=
use months; up to 365 days in one year), y-axis= depth (labels from 0 at the
top to 7 at the bottom; this is a water depth profile), and z-a
Hi, I would like to make a contour plot using R with the following information
(data at the end): x-axis= arranged according to day (from 1 to 365, labels=
use months; up to 365 days in one year), y-axis= depth (labels from 0 at the
top to 7 at the bottom; this is a water depth profile), and z-a
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
l
This is ugly, but I think it works.:
z.2 <- data.frame(data.interp[[3]])
diff_y <- unique(round(diff(data.interp[[2]]), 4))
diff_x <- unique(round(diff(data.interp[[1]]), 4))
total_area <- length(which(z.2!="NA"))*diff_y*diff_x
# percent of total area less than -.5 (as I wanted)
Per_neg_0.5 <- (
Ok,
I've since found this:
# called previously posted dataset "dat"
attach(dat)
library(akima)
data.interp <- interp(x,y,z)
contour(data.interp)
any idea how to calculate area within specified contour lines?
Thanks
chuck.01 wrote
>
> Hello,
> I have some data that will be in the form:
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", "4", "5", "6", "7", "8", "9",
On 01/21/2012 09:38 PM, Roary wrote:
Thanks for your responses Jason and Jim. The ternary plot is definitely the
right style with the triangle fill. However, one of the important features
(that perhaps I understated) is that X3 will have more categories than X1
and X2, therefore the triangular sh
Thanks for your responses Jason and Jim. The ternary plot is definitely the
right style with the triangle fill. However, one of the important features
(that perhaps I understated) is that X3 will have more categories than X1
and X2, therefore the triangular shape is not appropriate. If X1 has I
cat
On 01/20/2012 11:28 PM, Roary wrote:
Hi All,
I have 3 variables which present a perfect linear dependency such that the
third is the sum of the first two. I have an ordinary 2D contour plot on a
square grid with the first two variables forming the axes and the third
naturally being the diagonals
I'm not sure if this is appropriate. If the sum of your variables is
always the same constant, then you might try a Ternary plot (
http://en.wikipedia.org/wiki/Ternary_plot ).
The "vcd" package can make ternary plots.
On 01/20/2012 02:56 PM, Roary wrote:
I have two observed categorical variab
I have two observed categorical variables X1 and X2, with X3=X1+X2, and a
continuous response Y. I can interpolate the surface and construct an
ordinary 2D square contour plot (with X1,X2 axes and X3 on the diagonal).
However, I would like to change the orientation of the plot so that the
axes fit
Not sure if I understand the question: If you have more data the grid
produced by image() or contour() will be finer anyway...
Perhaps we just need an example what you are actually asking for.
Uwe Ligges
On 20.01.2012 13:28, Roary wrote:
Hi All,
I have 3 variables which present a perfect lin
Hi All,
I have 3 variables which present a perfect linear dependency such that the
third is the sum of the first two. I have an ordinary 2D contour plot on a
square grid with the first two variables forming the axes and the third
naturally being the diagonals. From an interpretive point of view it
Hello all,
I'd like to graphically represent an hourly temperature timeseries (
http://r.789695.n4.nabble.com/file/n3215785/data.csv data.csv , and see
below for pre-process of the data) with the R functions image + contour. To
do that I wrote that script :
http://r.789695.n4.nabble.com/file/n32
Hello all,
I'd like to graphically represent an hourly temperature timeseries (
http://r.789695.n4.nabble.com/file/n3179098/data.csv data.csv , and see
below for pre-process of the data) with the R functions image + contour. To
do that I wrote that script (
http://r.789695.n4.nabble.com/file/n317
On Oct 25, 2010, at 3:41 AM, Lorenzo Isella wrote:
On 10/25/2010 01:32 AM, David Winsemius wrote:
You were advised to look at rms. Why have you dismissed this
suggestion?
Using your data setup below and packaging into a dataframe.
require(rms)
ddf <- datadist(xysf <- as.data.frame(xys))
ol
On 10/25/2010 01:32 AM, David Winsemius wrote:
You were advised to look at rms. Why have you dismissed this suggestion?
Using your data setup below and packaging into a dataframe.
require(rms)
ddf <- datadist(xysf <- as.data.frame(xys))
olsfit <- ols(V3~rcs(V1,3)+rcs(V2,3), data=xysf)
bounds <
On 10/25/2010 03:30 AM, Lorenzo Isella wrote:
Hello,
I feel I am drowning in a glass of water.
Consider the following snippet at the end of the email, where I
generated a set of {x,y,s=f(x,y)} values, i.e. a set of 2D coordinates +
a scalar on a circle.
Now, I can get a scatterplot in 3D, but ho
On Oct 24, 2010, at 9:30 AM, Lorenzo Isella wrote:
Hi,
And thanks for helping. I am anyway a bit puzzled, since case (1)
is not
only a matter of interpolation. Probably the point I did not make
clear
(my fault) is that case (1) in my original email does not refer to
an
irregular grid o
Hi,
And thanks for helping. I am anyway a bit puzzled, since case (1) is not
only a matter of interpolation. Probably the point I did not make clear
(my fault) is that case (1) in my original email does not refer to an
irregular grid on a rectangular domain; the set of (x,y) coordinate
could sta
On Oct 24, 2010, at 6:12 AM, Lorenzo Isella wrote:
As to the domain of the function, at least in case (1), that should
arise from the collected data points in (x,y) if the sampling is
dense enough.
And that is precisely what you get from the perimeter function. The
earlier Design packag
On 10/24/2010 02:55 PM, David Winsemius wrote:
On Oct 24, 2010, at 4:30 AM, Lorenzo Isella wrote:
Dear All,
I would like to plot a scalar (e.g. a temperature) on a
non-rectangular domain (or even better: I would simply like to be able
to draw a contour plot on an arbitrary 2D domain). I wonder
On Oct 24, 2010, at 4:30 AM, Lorenzo Isella wrote:
Dear All,
I would like to plot a scalar (e.g. a temperature) on a non-
rectangular domain (or even better: I would simply like to be able
to draw a contour plot on an arbitrary 2D domain). I wonder if there
is any tool to achieve that with
On 24.10.2010 14:14, Lorenzo Isella wrote:
On 10/24/2010 01:51 PM, (Ted Harding) wrote:
On 24-Oct-10 11:30:57, Lorenzo Isella wrote:
Dear All,
I would like to plot a scalar (e.g. a temperature) on a non-rectangular
domain (or even better: I would simply like to be able to draw a
contour plot
On 10/24/2010 01:51 PM, (Ted Harding) wrote:
On 24-Oct-10 11:30:57, Lorenzo Isella wrote:
Dear All,
I would like to plot a scalar (e.g. a temperature) on a non-rectangular
domain (or even better: I would simply like to be able to draw a
contour plot on an arbitrary 2D domain). I wonder if there
On 24-Oct-10 11:30:57, Lorenzo Isella wrote:
> Dear All,
> I would like to plot a scalar (e.g. a temperature) on a non-rectangular
> domain (or even better: I would simply like to be able to draw a
> contour plot on an arbitrary 2D domain). I wonder if there is any
> tool to achieve that with R. I
Dear All,
I would like to plot a scalar (e.g. a temperature) on a non-rectangular
domain (or even better: I would simply like to be able to draw a contour
plot on an arbitrary 2D domain). I wonder if there is any tool to
achieve that with R. I did some online search in particular on the list
a
Hi All
I have been trying to plot irregular XYZ data on world / country map, where X
and Y are llongitude and latitude coordinates and Z is a variable. My problem
is I get contour lines over water bodies. The method I follow is:>
library(akima)> library(maps)> library(mapdata)> library(gpclib)>
Hi,
Could someone give some ideas on plotting a contour by using geoR package,
please?
Thank you
Kagba
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do r
04
Aan: David Winsemius
CC: r-help@r-project.org
Onderwerp: Re: [R] contour plot
That problem is that for every y I get a different x and thus cant
create an array as in the help page examples.
I was just wondering, whether there is a possibility to create such a
contour plot easily without hav
Hi
maybe package akima with function interp can help you
Regards
Petr
r-help-boun...@r-project.org napsal dne 23.07.2009 11:04:25:
> That problem is that for every y I get a different x and thus cant
> create an array as in the help page examples.
> I was just wondering, whether there is a poss
That problem is that for every y I get a different x and thus cant
create an array as in the help page examples.
I was just wondering, whether there is a possibility to create such a
contour plot easily without having to spend too much time with setting
up a suitable matrix manually.
Armin
__
On Jul 22, 2009, at 10:17 AM, axionator wrote:
Hi,
I want to draw a contour plot of the following function:
z = y*x + epsilon,
where x ~ N(y, 1)
and epsilon ~ N(0, sigma) with sigma fixed (e.g. 1)
But didnt manage to feed "contour" with the right input.
Thanks for your help.
Armin
The hel
Hi,
I want to draw a contour plot of the following function:
z = y*x + epsilon,
where x ~ N(y, 1)
and epsilon ~ N(0, sigma) with sigma fixed (e.g. 1)
But didnt manage to feed "contour" with the right input.
Thanks for your help.
Armin
__
R-help@r-pro
On 2/12/2009 12:04 PM, Gilbert Brenes wrote:
Hi.
Is it possible to draw a contour plot (with contour or filled contour) or a
a surface plot (with persp or persp3d) with the z axis in a log scale?
For persp or persp3d I think you'd have to do the log transformation
yourself. For example,
x
Gilbert Brenes wrote:
Hi.
Is it possible to draw a contour plot (with contour or filled contour)
or a a surface plot (with persp or persp3d) with the z axis in a log scale?
At least for contour(), you can specify logarithmic breaks.
Best,
Uwe Ligges
Gilbert
___
Hi.
Is it possible to draw a contour plot (with contour or filled contour) or a
a surface plot (with persp or persp3d) with the z axis in a log scale?
Gilbert
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE d
tommaso.lette...@unifi.it wrote:
Dear R-Users,
I am using 'contour' to plot a graph using values x,y and a matrix z.
I would like to obtain 'smooth lines' instead of no-smooth contour lines.
I tried with filled.contour too.
In a Post I found
yy <-predict(interpSpline(x, y))
I could use that met
Dear R-Users,
I am using 'contour' to plot a graph using values x,y and a matrix z.
I would like to obtain 'smooth lines' instead of no-smooth contour lines.
I tried with filled.contour too.
In a Post I found
yy <-predict(interpSpline(x, y))
I could use that method for each range that I want to pl
Folkes, Michael dfo-mpo.gc.ca> writes:
> I'm having trouble making contour lines for this attached, sparse
> dataset (low data:NA ratio!). Is it the high number of NA's, or funny
> layout of the densities, or something else that's causing this?
>
> start data to be in file='testmatrix.csv
I'm having trouble making contour lines for this attached, sparse
dataset (low data:NA ratio!). Is it the high number of NA's, or funny
layout of the densities, or something else that's causing this? This is
a subsample of the dataset, and I get the same problem when using the
full data. The only
So I managed to solve this for myself in a very roundabout kind of way. So I
figured that I should share in case anyone else needed something like this.
filled.contour(contour, axes=F, frame.plot=F, color=terrain.colors, ylab=
"", key.title = title(main="Velocity\n(m/s)"),asp=2, key.axes = axis(4,
]
801.408.8111
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> project.org] On Behalf Of Sam Albers
> Sent: Thursday, October 02, 2008 2:02 PM
> To: r-help@r-project.org
> Subject: [R] Contour Plot Aspect Ratio
>
> Hello there,
>
> I have a
Hello there,
I have a fairly simple request (I hope!)
I have produced a filled contour plot like this:
library(grDevices)
library(gplots)
library(plotrix)
filled.contour(contour, axes=F, frame.plot=TRUE, color=terrain.colors, ylab=
"Length Along Flume (m)", key.title = title(main="Velocity\n(m/
On 6/19/2008 12:51 PM, Jehol wrote:
Dear all,
there is much in these forums about adding a line to a
contour/filled.contour plot, but I haven't found hints for the following. I
apologize in advance if I just missed the right one.
I'm having a standard filled.contour plot to which I want to add a
Dear all,
there is much in these forums about adding a line to a
contour/filled.contour plot, but I haven't found hints for the following. I
apologize in advance if I just missed the right one.
I'm having a standard filled.contour plot to which I want to add a line
passing through some specific z
> I have a sample of n values from a bivariate distribution (from a MCMC
> procedure). How could I draw a contour plot of "the joint density" based on
> that sample ?
here is a fast 2D density estimator. Not very sophisticated, but works.
The function assumes that data are in the form of a matrix
On 10/4/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote:
> On Thu, 4 Oct 2007, Caio Azevedo wrote:
>
> > Hi all,
> >
> > I have a sample of n values from a bivariate distribution (from a MCMC
> > procedure). How could I draw a contour plot of "the joint density" based on
> > that sample ?
>
> You n
On Thu, 4 Oct 2007, Caio Azevedo wrote:
> Hi all,
>
> I have a sample of n values from a bivariate distribution (from a MCMC
> procedure). How could I draw a contour plot of "the joint density" based on
> that sample ?
You need to estimate the density, and contour that estimate. MASS has
exampl
Hi all,
I have a sample of n values from a bivariate distribution (from a MCMC
procedure). How could I draw a contour plot of "the joint density" based on
that sample ?
Sorry if I was not too clear.
Thans in advance,
Regards,
Caio
[[alternative HTML version deleted]]
55 matches
Mail list logo