search for: drawlabels

Displaying 14 results from an estimated 14 matches for "drawlabels".

2002 Dec 14
1
adding contour lines to a filled.contour
...nks, Andy #~~~~~~~~~~~~~~~~~~~ #example junk.mat <- matrix(rnorm(1600), 16, 100) filled.contour(junk.mat, color = terrain.colors) #set values < 2 to zero contour.mat <- ifelse(junk.mat < 2, 0, junk.mat) #add contours contour(contour.mat, levels = 1, drawlabels = F, axes = F, frame.plot = F, add = T)
2004 Feb 03
4
filled maps
Hi R-Help, I would like to make filled contour maps of ocean data overlaid by costlines from the map package. I can draw the filled contours and the coastlines om the same plot, but the filled contour also covers part of the land. To get rid of that I tried to draw a filled coastline map on top of the filled contour, but the filled map only draws the closed contours - so most of the land is
2006 Jun 22
1
How to plot a image with restrictions?
Hello All! How to plot a image ( image function ) with restrictions, like a polygon?? Thanks in advance! Cleber N. Borges ##### problem example x <- y <- seq(-4*pi, 4*pi, len=27) r <- sqrt(outer(x^2, y^2, "+")) image( z ) contour(z, add = TRUE, drawlabels = FALSE) m=scan() 0.2 0.2 0.8 0.2 0.5 0.8 m = matrix(m,nr=3,byrow=T) polygon( m, lwd=5 )
2011 Jan 29
0
Using 'contour' to compare concentration profiles on the same plot
...5100,0.995100,0.995100,0.995100,0.995100,0.995100,0.995100,0.995100,0.995100,0.995100,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0) ,nrow=20,ncol=40,byrow=T) levels_vs2d <- pretty(range(vs2d, finite=TRUE), 5) contour(t(vs2d), levels=levels_vs2d, col="red", labcex=1.2, drawlabels=TRUE) contour(t(mt3d), levels=levels_vs2d, col="blue", labcex=1.2, drawlabels=TRUE, add=T) -- View this message in context: http://r.789695.n4.nabble.com/Using-contour-to-compare-concentration-profiles-on-the-same-plot-tp3246382p3246382.html Sent from the R help mailing list archive at...
2008 Apr 23
4
filled contour plots
...llo 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) axis(2,1:length(yy),labels=ylabels) }) which results in the figure attached. Overall the figure looks great. However, my 2 question are: 1) how can I make sure that the contour lines match the shading? you can see from...
2003 Dec 14
1
contour() should handle the asp parameter
...ot;) The new script would be: contour.default<- function (x = seq(0, 1, len = nrow(z)), y = seq(0, 1, len = ncol(z)),z, nlevels = 10, levels = pretty(zlim, nlevels), labels = NULL, xlim = range(x, finite = TRUE), ylim = range(y, finite = TRUE), zlim = range(z, finite = TRUE), labcex = 0.6, drawlabels = TRUE, method = "flattest", vfont = c("sans serif", "plain"), axes = TRUE, frame.plot = axes, col = par("fg"), lty = par("lty"), lwd = par("lwd"), add = FALSE,asp=NA,...) { if (missing(z)) { if (!missing(x)) {...
2011 Sep 30
1
Odd gridding pattern when plotting
...s) # for colours x <- y <- seq(-4*pi, 4*pi, len=27) r <- sqrt(outer(x^2, y^2, "+")) image(z = z <- cos(r^2)*exp(-r/6), col=gray((0:32)/32)) image(z, axes = FALSE, main = "Math can be beautiful ...", ????? xlab = expression(cos(r^2) * e^{-r/6})) contour(z, add = TRUE, drawlabels = FALSE) Any ideas what is causing this?? I can't seem to figure it out.? I'm not sure the bmp image can/will be posted, so maybe you can just take my word for it.? It is a gridding pattern in white, that appears over the plot area only. Vertical lines are every 4 units, evenly spaced....
2010 Aug 06
1
[R-SIG-Mac] Question about line type in contour() function (R 2.11.1)
...c to r-devel; it's not a Mac problem. I've also added back a bit of the context for readers here. A little bit more on this: the problem only affects contour() when labels are being drawn, and only if method is set to "flattest" (the default) or "edge". If you set drawLabels=FALSE or method="simple" you won't see it. I think I should be able to fix this after all. Duncan Murdoch
2006 Jan 09
1
How to use filled.contour(x,y,z) data for levelplot(z)?
Dear all, We used the following function to create a spatial plot of a raster image: filled.contour(xx,yy,zz, color = terrain.colors, nlevels=10, main=naamjaar, plot.axes = { contour(Xcoord/1000,Ycoord/1000,lim.data, nlevels = 4, col=4,drawlabels = T, axes = FALSE, frame.plot = FFALSE, add = TRUE);axis(1); axis(2); points(fire[,2:3]/1000,col="red",pch="*",cex=2,lwd=3) }) we however would like to create 5 maps with only one legend. This seems not to be possible with...
2011 Nov 12
2
plotting a bivariate quadratic curve
Hi, I would like to plot a x,y curve described by the equation : Ax^2 + Bx + Cy^2 + Dy + E == 0 (A,B,C,D,E are constants) This sounds like quite the common task but haven't been able to figure out how to do this. Could you please help ? I am new to R so probably missing something basic. Thanks
2000 Feb 08
1
DEC cc doesn't like c++ comments (PR#416)
...ic font + * 0, .5 => left, centre justified */ if (vectorFonts) GVText(ux, uy, INCHES, buffer, typeface, fontindex, @@ -986,9 +986,9 @@ atan2(vy - uy, vx - ux), dd); } - } // if (gotLabel) - } // if (method == 0) else ... - } // if ((drawLabels == 1) && (labelDistance > 0)) + } /* if (gotLabel) */ + } /* if (method == 0) else ... */ + } /* if ((drawLabels == 1) && (labelDistance > 0)) */ else { GPolyline(ns, xxx, yyy, USER, dd); } @@ -1889,7 +1889,7 @@ static void PerspAxis(double *x, double *y,...
2009 Aug 05
1
Decision boundaries for lda function?
Hi, I am using the lda function from the MASS library. I would to find the decision boundaries of each class and subsequently plot them. I wonder if anybody can offer any help on this topic? Below I applied the lda function on a small dataset of mine. Any help will be much appreciated. > library(MASS) >
2007 Mar 29
0
[929] branches/wxruby2/wxwidgets_282/swig/classes: Fix virtual methods that shouldn''t be (Bug 9682); Add missing methods and
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
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: