similar to: Drawing curves

Displaying 20 results from an estimated 700 matches similar to: "Drawing curves"

2011 Feb 15
1
gList and gTree methods of grid::grobX
Dear all, In an attempt to draw fill patterns in grid graphics, I have encountered a behavior of grobX that I cannot understand from the documentation. Consider this, library(grid) ## gTree g1 <- gTree(children=gList( rectGrob(0.5,0.5, width=unit(0.8,"npc"), height=unit(2,"cm")), circleGrob(r=0.3)), vp=viewport(0.5,0.5)) ##
2009 Jun 23
2
curvedarrow (some graphics problem)
Hi there, I just wonder how to draw this kind of picture... http://www.nabble.com/file/p24158796/b.jpg http://www.nabble.com/file/p24158796/a.jpg and this is what i have done %%%%% library(shape) library(diagram) curve(sin(x),bty="n",-8,8,yaxt="n",ylab="",xaxt="n",type="n",xlab="") axis(1,labels=F,at=seq(-8,8,1))
2009 Apr 15
1
savePlot error when type = "eps" or "wmf"
Hello, When I use savePlot(filename="xy",type="eps") or savePlot(filename="xy",type="wmf") , I get the following error: Error in grid.Call("L_textBounds", as.graphicsAnnot(x$label), x$x, x$y, : Polygon edge not found (zero-width or zero-height?) This doesn't occur when I change the type to "jpeg" or "bmp". Can
2011 Mar 12
2
Drawing a circle on an existing graph.
I would like to draw a circle on a graph I am plotting in R and use the current plot's coordinate system. The most basic functionality I am looking for is the ability to plot a circle on an already existing graph by simply providing the xy coordinates for it's centre and the radius. I am also looking for a way to obtain x,y values of a point (of a circle) by specifying only the origin x,y
2007 Aug 05
1
Any "special interest" in R/pic interface?
Hi Folks, I'm wondering if there are people out there who would be interested in what would be involved in developing an interface between R graphics and the 'pic' language. Explanation; 'pic' has been part of the Unix 'troff' typesetting suite since very early days (1970s), and also of the GNU troff: 'groff'. Its function is to act as a preprocessor,
2008 Dec 04
1
xspline, graphical parameters and MAXNUMPTS
Hello, I am having two difficulties with xspline: 1) Passing lty=2 (via ...) appears to have no effect 2) Apparently depending on the current plot axes, I may or may not get the failure: add_point - reached MAXNUMPTS (25200) This happens both on Linux/R 2.8.0 (details below) and Windows Vista/R 2.8.0 patched (2008-10-21 r46766) Simplest case: plot(c(0,1),c(0,1))
2007 Jul 24
7
Obtaining summary of frequencies of value occurrences for a variable in a multivariate dataset.
Hi all, If the question below as been answered before I apologize for the posting. I would like to get the frequencies of occurrence of all values in a given variable in a multivariate dataset. In short for each variable (or field) a summary of values contained with in a value:frequency pair, there can be many such pairs for a given variable. I would like to do the same for several such variables.
2012 Mar 01
3
Connecting points on a line with arcs/curves
Hello, I have a spreadsheet of pairs of coordinates and I would like to plot a line along which curves/arcs connect each pair of coordinates. The aim is to visualise the pattern of point connections. Thanks! Ian -- View this message in context: http://r.789695.n4.nabble.com/Connecting-points-on-a-line-with-arcs-curves-tp4435247p4435247.html Sent from the R help mailing list archive at
2008 Feb 08
1
xspline(..., draw=FALSE) fails if there is no open device (PR#10727)
Full_Name: Jari Oksanen Version: 2.6.2 RC (2008-02-07 r44369) OS: Linux Submission from: (NULL) (130.231.102.145) Even if function xspline() is called with argument draw=FALSE, it requires a graphics device (that it won't use since it was draw=FALSE). I run into this because I intended to use xspline within a function (that does not yet draw: there is plot method for that), and the function
2008 Jan 14
2
Need help with xspline error message in R 2.6.1 on Windows XP
I am attempting to generate a series of plots with cubic B-Splines and the code I am using is generating the following error message that I have been unable to resolve. Error in grid.Call.graphics("L_xspline", x$x, x$y, x$shape, x$open, x$arrow, : add_point - reached MAXNUMPTS (25200) This is the code that generates this error. plot.results <- function(dfn) { dt <-
2009 Jan 06
3
smoothed contour lines
Hi all, I'm trying to draw a contour plot with rounded (smoothed) contour lines instead of sharp angles; when the grid consists of only a few points in x- and y- axis, the resulting contour is in facts rather ugly since very sharp angles may appear. I did not find any way to do it, by using either "contour" or "contourplot" (from the lattice package), I wonder if there
2005 Jul 20
6
GSM gateway hardware
Hi All, I am looking for a GSM VoIP gateway for use with Asterisk. I have come across VoiceBlue by 2N but it's price is beyond my reach. Are there any other alternatives out there? I've scanned across the mail achieves for an answer to this without much success, if the question has already been answered kindly point me to the resource. Allan.
2007 Jan 11
2
calls to SPA942 disconnect after 15 seconds (chan_sip.c set_destination: can't find address)
Am having a unique problem, calls received on my SPA942 seem to end after 15 seconds, but calls made from this device do not have this problem. For this device (when receiving calls) I get periodic "chan_sip.c set_destination: can't find address for host" I have set the "canreinvite=no" in the sip.conf. Does anyone have a sample entry from sip.conf for the Lynksys SPA 942
2007 Feb 05
16
Problems with HTB. Help!
Hello list. I''ve configured a very simple script to slow down packets coming from a particular IP Address. I''ve used IPTABLES to mark traffic coming from this IP Address, but it does not appear to be working as expected. Let me first describe my system as maybe what I''m doing is beyond what NETFILTER can do. I have one machine that runs all my servers as
2008 Aug 04
5
Are there any guis out there, which will allow editing of the graph?
Hi, all, I would like to know if there is any gui interface out there (academic or commercial) that allows one to edit R-language generated graphs (e.g positioning x axis labels.) It would be nice to have something like the user interface of Igor or Origin. I have already used JGR and R-gui. These are good, but they don't allow one to easily edit graphs. I have also tried
2009 Jun 25
3
grid.polygon() + color gradient
Hi, I wonder whether there is a way to generate a polygon (a triangle in my case) with color gradient using grid.polygon() in package grid? I tried something like library(grid) grid.polygon(x=c(0, 0.5, 1), y=c(0.5, 1, 0.5), gp=gpar(col=NA, fill=colorRampPalette(c("green", "lightgray"), space="Lab")(200))) But am only
2007 Sep 19
3
Smooth line in graph
Hi, I?m trying to get smooth curves connecting points in a plot using "spline" but I don?t get what I whant. Eg.: x<-1:5 y <- c(0.31, 0.45, 0.84, 0.43, 0.25) plot(x,y) lines(spline(x,y)) Creates a valley between the first and second points, then peaks at 3rd, and another valley between 4th and 5th. I?m trying to get a consistently growing curve up to the 3rth point and then a
2006 Dec 11
1
hermite and Bezier splines
Does anyone know how to do hermite or Bezier splines in R? I can find Matlab routines, but really need to implement them in R. Failing that I'd be interested in other conformal splines. I need to smooth and interpolate animal tracking data. Antarctic Wildlife Research Unit School of Zoology University of Tasmania PO Box 252-05 Hobart TAS, 7001 Australia Phone: (0)3 6226 2645 Fax:
2011 Jul 28
3
smooth scatterplot and geo map
Hello everybody, I'm trying to understand how to draw a smoothed scatterplot on a geographic map with R. Have a dataframe with point locations (long, lat) and was able to simply plot these points on a shp map by using the maptools package. However, instead of having simply the raw points on the map, I would like to have a "smoothed" scatterplot of the same superimposed on the map.
2009 May 15
2
Yum update gone bad...
Morning list! I have a situation that was brought about by a system crash during a yum update. The motherboard suffered a catastrophic failure due to busted CAPS. Lucky for me (or so I thought at the time), I had a spare, identical motherboard as the one that failed. I replaced the dud board and rebooted. This machine runs headless and is my primary (personal/home) mail server. I normally