Displaying 20 results from an estimated 25 matches for "xspline".
Did you mean:
spline
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)
S...
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 failed when called in a virgin
environme...
2008 Feb 08
0
xspline(..., draw=FALSE) fails if there is no open device (PR#10728)
jari.oksanen at oulu.fi wrote:
> 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=3DFALSE, it req=
uires a
> graphics device (that it won't use since it was draw=3DFALSE). I run in=
to this
> because I intended to use xspline within a function (that does not yet =
draw:
> there is plot method for that), and the function failed when cal...
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 <- read.table(dfn)
shp <- rep(1, as.numeric(length(dt$year)))
shp[1] <- shp[as.numeric(length(dt$year))] <- 0
gri...
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
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:
2008 Sep 15
2
Drawing curves
Hi,
Am looking for an R package that will provide the drawing of curves and
arcs of arbitrary shapes to use in illustrations. For example bent lines
and arrows.
Allan.
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.
2011 Feb 15
1
gList and gTree methods of grid::grobX
...")
If I'm not mistaken, neither gList nor gTree seem to produce the
documented behavior,
"If the grob describes multiple shapes, the boundary value will either
correspond to the edge of a bounding box around all of the shapes
described by the grob (for multiple rectangles, circles, xsplines, or
text), or to a convex hull around all vertices of all shapes described
by the grob (for multiple polygons, points, lines, polylines, and
segments)."
with gList, I observe that the boundary is only considered for the
first shape, whilst gTree ignores all children altogether.
It works fin...
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
2008 Dec 22
0
R 2.8.1 is released
...o R CMD INSTALL used the C locale to install the DESCRIPTION
file, and so escaped non-ASCII characters in packages with a
declared encoding of "latin1" or "UTF-8". (However, the
installed DESCRIPTION file was rarely used since the dumped
metadata are available.)
o xspline() now respects inline par settings.
It and grid.xspline() now handle the special case of only two
control points, and splines with control points that are
located well outside the device (e.g., a zoomed view of a
larger curve). (Both cases were giving the error "reached
MAXNUMPTS")....
2008 Dec 22
0
R 2.8.1 is released
...o R CMD INSTALL used the C locale to install the DESCRIPTION
file, and so escaped non-ASCII characters in packages with a
declared encoding of "latin1" or "UTF-8". (However, the
installed DESCRIPTION file was rarely used since the dumped
metadata are available.)
o xspline() now respects inline par settings.
It and grid.xspline() now handle the special case of only two
control points, and splines with control points that are
located well outside the device (e.g., a zoomed view of a
larger curve). (Both cases were giving the error "reached
MAXNUMPTS")....
2008 Oct 10
1
how to evaluate a cubic Bezier curve (B-spline?) given the four control points
I'm trying to use R to determine the quality of a cubic Bezier curve
approximation of an elliptical arc. I know the four control points
and I want to compute (x,y) coordinates of many points on the curve.
I can't find anything in either the base distribution or CRAN that
does this; all the spline-related packages seem to be about *fitting*
piecewise Bezier curves to a data set.
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
2009 Nov 06
3
order of points in spline
Hello everyone,
I was trying to fit a spline to some points and I was quite surprised to
find out that the function spline does not take into account the order of
the points themselves, but orders them by x.
For instance, I have:
x <- c(262, 275, 264, 250, 247, 242, 238, 233)
y <- c(422, 389, 359, 308, 269, 229, 191, 176)
plot(x, y, xlim=c(0, 500), ylim=c(0,500))
s <- spline(x,y)
2009 Apr 30
3
Curved arrows
I'm trying to draw an arrow with a curved shaft on the graph as a straight
one looks messy on a detailed graph. I've looked in arrows but it doesn't
seem to give an option. larrows doesn't look much more promising. I had a
look in the archive and couldn't find anything. Any thoughts?
Thanks
Paul
--
View this message in context:
2007 May 03
0
unscrible pls
...ntainmail.org>
> Subject: Re: [R] to draw a smooth arc
> To: ted.harding@manchester.ac.uk, r-help@stat.math.ethz.ch
> Message-ID:
> <07E228A5BE53C24CAD490193A7381BBB9727A3@LP-EXCHVS07.CO.IHC.COM>
> Content-Type: text/plain; charset=us-ascii
>
> There is the grid.xspline function in the grid package that allows for
> things like this (the control points, though more general than what you
> state). I don't know if it uses the postscript curveto, or approximates
> using line segments.
>
> You can also use the xfig device, then use xfig, winfig, or...
2010 Nov 01
6
connecting points into a smooth curve
If I have, say, five scatter points and want to connect them together into a
smooth curve.
I did plot(x,y,type="l"), but the graph is five segments connecting with
each other, but not a smooth curve.
I wonder if there is a line type that is a curve. Thanks!
--
View this message in context: http://r.789695.n4.nabble.com/connecting-points-into-a-smooth-curve-tp3021796p3021796.html
Sent
2007 Oct 03
1
R-2.6.0 is released
..., postscript() (and hence bitmap()), xfig(), jpeg(), png()
and the Windows devices win.print(), win.metafile() and bmp()
now warn (once at first use) if semi-transparent colours are
used (rather than silently treating them as fully
transparent).
o New function xspline() to provide base graphics support of
X-splines (cf grid.xspline).
o New function xyTable() does the 2D gridding "computations" used by
sunflowerplot().
o Rd conversion to HTML and CHM now makes use of classes, which
are set in the stylesheets. Editi...
2007 Oct 03
1
R-2.6.0 is released
..., postscript() (and hence bitmap()), xfig(), jpeg(), png()
and the Windows devices win.print(), win.metafile() and bmp()
now warn (once at first use) if semi-transparent colours are
used (rather than silently treating them as fully
transparent).
o New function xspline() to provide base graphics support of
X-splines (cf grid.xspline).
o New function xyTable() does the 2D gridding "computations" used by
sunflowerplot().
o Rd conversion to HTML and CHM now makes use of classes, which
are set in the stylesheets. Editi...