Displaying 20 results from an estimated 5000 matches similar to: "alpha-channel transparency in filled.contour"
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
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
2012 Jul 04
2
help with filled.contour() -
Dear all,
I can't figure out a way to have more than one plot using filled.contour() in a single plate. I tried to use layout() or par(), but the way filled.contour() is written seems to override those commands.
Any suggestions would be really appreciated.
Jonathan
[[alternative HTML version deleted]]
2007 Feb 22
3
several Filled.contour plots on the same device...
hello -
a question about filled.contour plots, for which i haven't found a
response in previous posts - sorry if already treated.
i'd like to draw several filled.contour plots (that is, maps) on the same
device (a postscript file, actually). I know about layout(matrix) ,
split.screen or par(mfrow) : it works well for simple plots, but with
filled.contour plots, i get several pages
2010 Nov 22
0
Problems using Internal filledcontour: "dimension mismatch"
In order to gain a bit more control over the fill contour functionality I'm
trying to use the Internal filledcontour function. I wasn't able any
documentation on this function and only one reference to it.
I believe the code shown below is close because all the dimensions seem to be
correct, but I'm still getting a "dimension mismatch" error and the filled
contour
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
#~~~~~~~~~~~~~~~~~~~
2007 Jan 01
4
Help with filled.contour()
The following plot is a first approximation to what I need:
***********************************
mu1 <- 0
mu2 <- 5
s <- 1
x <- seq(-2.5, 7.5, length = 41)
y <- seq(-2.5, 2.5, length = 41)
f <- function(x,y){
term1 <- 1/(2*pi*sqrt(s*s))
term2 <- -1/2
term3 <- (x - mu1)^2/s
term4 <- (y - mu1)^2/s
term5 <- (x - mu2)^2/s
term1*(.5 * exp(term2*(term3 + term4)) + .5 *
2011 Dec 22
1
overlaid filled contour plots
I'm trying to make a set of contour plots of bivariate kernel density
estimates, showing three such plots overlaid,
similar to this plot
http://euclid.psych.yorku.ca/SCS/Private/Test/ridge-boot2.pdf
except that I would like to have the contours *filled* (using
transparent colors). To make this reproducible, I've
saved the results of KernSmooth::bkde2D() in the following file:
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)
2002 Nov 26
1
filled.contour and points
I was trying to add points to filled.contour plots, but the
points(...) function apparently uses a different coordinate system
than the filled.contour(...) function; it appears that points(...)
paints points where they would be if the contours were stretched over
the whole plotting frame including the legend bar. Am I missing
something or is it a "misalignment" in the code?
BTW, I have
2012 Apr 22
2
contour algorithm
First time user, so sorry if I don't understand protocol.. Anyway, I have
created a data frame consisting of pearson's R values at various x and y
coordinates and then plotted this using filled.contour. My data is similar
to fMRI data except that it is a surface map reconstructed from
histological sections. I like the results but would like to know how
contours were detected. Google search
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
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 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
2013 Nov 11
0
Diferencias entre contour y filled.contour
Hola a todos:
Yo pensaba que la diferencia entre contour y filled.contour radicaba,
simplemente, en que la segunda pintaba con colores los espacios entre las
curvas de nivel, pero haciendo lo de abajo aparecen diferencias
require(gplots)
celdas <- 5
m <- matrix(10,celdas,celdas)
m[3,3] <- 20
m[2,2] <- 20
m[1,] <- m[celdas,] <- m[,celdas] <- m[,1] <- 20
image(m,asp=1)
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
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:
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,
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
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,