Displaying 20 results from an estimated 1000 matches similar to: "Inconsistency in grid::grid.polyline"
2023 Oct 15
1
Plot to a device and examine the plot?
Hi
You could also look at dev.capture(), depending on which screen device
you are using.
Paul
On 16/10/23 05:24, Duncan Murdoch wrote:
> On 15/10/2023 12:05 p.m., Shu Fai Cheung wrote:
> > Let me clarify my question:
> >
> > plot.new()
> > polygon(c(.5, .5, .75, .8), c(.25, .3, .4, .5))
> >
> > If the device is an on-screen device, can I check
2023 Oct 29
1
Wayland Display Support in R Plot
Hi
I am unaware of any Wayland display support.
One useful way forward would be an R package that provides such a device
(along the lines of 'Cairo', 'tikzDevice', et al)
Paul
On 27/10/23 23:16, quentin.thorne via R-devel wrote:
> Hello,
>
> I'm interested in understanding the current state of Wayland display
> support in R plot, and I was wondering if any
2023 Mar 08
1
insert hyperlink into svg graphic
Hi
On 8/03/23 15:27, Rusty Travis wrote:
> On 3/7/23 13:12, Paul Murrell wrote:
>> Hi
>>
>> I think the main issue here is that you are *drawing* text on the
>> graphics device, so I would only expect to see literal XML text output
>> in the result.
>> '''
>>
>> Hope that helps
>
> Thank you for your consideration of the
2024 Mar 12
1
evince not showing "greek" and "math" in *.pdf plots
Hi
I don't think this is an R issue (it is separate from the Cairo Symbol
font problem).
For PDF output, R actually relies on the Symbol font having the Adobe
Symbol Encoding (Appendix D of the PDF Reference
https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/pdfreference1.7old.pdf)
and just outputs the font as "Symbol", which relies on it being one of
the Standard
2024 Mar 13
1
evince not showing "greek" and "math" in *.pdf plots
I see. Peter, you are right about the font that causes the issue. Paul,
thanks for your insights. I'll bring this to the Fedora font experts to see
if we can arrive at a more permanent fix. I'll report back with any
conclusion.
@Martin: Meanwhile, at least you have options. One is to embed the fonts,
either as Peter suggested or using cairo_pdf instead. Alternatively, Peter
also has shown
2009 Feb 02
0
Polyline toMicrosoft() change
Hi guys at mapstraction,
I made a change in the Polyline.toMicrosoft() function, in order to have
all the power that a VEShape has, for instance fill color. Below is the new
code, if you want to use it, change it, or whatever.
Cheers,
Beta
/**
* toMicrosoft returns a Microsoft polyline
* @returns a VEShape
*/
Polyline.prototype.toMicrosoft = function() {
var mpolyline;
var mpoints
2018 Jan 30
0
Calculating angle of a polyline
I like to use complex numbers for 2-dimensional geometry. E.g.,
> polyAngles2
function (xV, yV)
{
stopifnot((length(xV) == length(yV)) && (length(xV) >= 3))
z <- complex(re = xV, im = yV)
c(NA, diff(Arg(diff(z))), NA) # radians, positive is counter-clockwise
}
> x <- c(0:3)
> y <- c(0,0,1,1)
> polyAngles2(x,y) / pi * 180
[1] NA 45 -45 NA
Bill
2018 Jan 30
0
Calculating angle of a polyline
A polyline by definition has many angles, so your question is ill-formed. And this is a question about math, not R, so is off topic here. I suggest reading Wikipedia.
--
Sent from my phone. Please excuse my brevity.
On January 29, 2018 11:10:02 PM PST, javad bayat <j.bayat194 at gmail.com> wrote:
>Dear R users
>I am trying to find a formula to calculate the angle of a polyline. Is
2018 Jan 30
2
Calculating angle of a polyline
Assuming your polyline is defined by two vectors, one for the x
coordinates, one for the y coordinates, you can try the following
library(NISTunits)
polyangles <- function(xV,yV) {
stopifnot( (length(xV)==length(yV)) && (length(xV) >= 3))
v <- function(i) { c( xV[i]-xV[i-1], yV[i]-yV[i-1])}
vlen <- function(v) { sqrt(sum(v*v)) }
lV <- rep(NA_real_,length(xV))
for
2023 Mar 07
1
insert hyperlink into svg graphic
This was actually the first thing that ChatGPT debugged for me.
The issue was that I was able to click on the link when I displayed the raw SVG in the browser (you can use that to test whether the syntax is even correct), but not when the svg displays inside a html page with the <img ...> tag.
ChatGPT correctly identified the issue and suggested a solution using <object ...> tags
2018 Jan 30
2
Calculating angle of a polyline
Dear R users
I am trying to find a formula to calculate the angle of a polyline. Is
there a way to do this?
Many thanks.
--
Best Regards
Javad Bayat
M.Sc. Environment Engineering
Alternative Mail: bayat194 at yahoo.com
[[alternative HTML version deleted]]
2023 Oct 27
1
Wayland Display Support in R Plot
Hello,
I'm interested in understanding the current state of Wayland display support in R plot, and I was wondering if any progress or discussions have taken place regarding this matter.
As Wayland continues to gain popularity as a display protocol on modern Linux systems, having Wayland support for R's plotting capabilities would be a significant enhancement.
Could anyone provide
2024 Aug 16
1
Is there some place where I can check a changelog / NEWS for the grid package?
On 16.08.2024 13:46, Iago Gin? V?zquez wrote:
> Hi all,
>
> On one hand, I wanted to ask if there is some place where I can check a changelog / NEWS for the grid package, as it is not on CRAN. And in that case, where can I find it?
Grid is part of R, hence you can look at R's NEWS, e.g. at
<https://cran.r-project.org/doc/manuals/r-devel/NEWS.html>
or directly in the svn
2024 Mar 25
1
Double buffering plots on Windows
Hi Paul
Is there a concrete working example somewhere that shows how to use these to do an animation on Windows (R Gui &/or RStudio) using base R plot() and friends?
I have several old examples somewhere that used to work (R < ~ 3), but now no longer work as before.
Date: Mon, 25 Mar 2024 10:43:29 +1300
From: Paul Murrell <paul at stat.auckland.ac.nz<mailto:paul at
2023 Mar 31
1
single character in R, and how to manipulate it
Also see the "arctext" function in the plotrix package.
Jim
On Fri, Mar 31, 2023 at 11:12?AM Jim Lemon <drjimlemon at gmail.com> wrote:
>
> Hi Jinsong,
> Maybe "srt" will do what you want. As you noted non-orthogonal
> rotations may not work on some devices. You may be able to download
> mirror fonts from places like fontmirror.com, but it more
2008 Jan 11
0
New version of ggplot2: 0.5.7
ggplot2 ------------------------------------------------------------
ggplot2 is a plotting system for R, based on the grammar of graphics,
which tries to take the good parts of base and lattice graphics and
avoid bad parts. It takes care of many of the fiddly details
that make plotting a hassle (like drawing legends) as well as
providing a powerful model of graphics that makes it easy to produce
2008 Jan 11
0
New version of ggplot2: 0.5.7
ggplot2 ------------------------------------------------------------
ggplot2 is a plotting system for R, based on the grammar of graphics,
which tries to take the good parts of base and lattice graphics and
avoid bad parts. It takes care of many of the fiddly details
that make plotting a hassle (like drawing legends) as well as
providing a powerful model of graphics that makes it easy to produce
2025 Apr 03
1
Problems with svg() exporting graphics with gradients
The R-help listserv deletes most attachments (as security risks) and your
attachments (I assume) did not come through. Provide code for a minimal
reprex or a site from which those interested in helping can get your plots
instead if no one who already knows about this issue responds. You might
also try posting on the Posit/ggplot Help site, as someone there may be
able to help.
Cheers,
Bert
2024 Mar 22
2
Double buffering plots on Windows
Hello:
I want to present a sequence of plots as an animation. As a toy example consider the code
function(n){for (i in 1:n){
plot(1:100,sin(i*(1:100)),type="l")
title(paste("n=",i))
segments(0,0,100,0,col=2)
}}
This sort-of works on a MacOS platform, but the rendering of the plots is a bit choppy. Inserting a sleep function allows the plots to evolve smoothly.
2009 Mar 17
0
removeEventListener and polylines
Hello, my name is Mario and I''m new to Mapstraction (and to Javascript too).
I''d like to know how can I remove a listener previously added with the method addEventListener. I found nothing on the documention so I coded a removeEventListener method. If you think it will be useful I can post it (but as i said I''m a newbie to both Javascript and Mapstraction so it can be