similar to: 2 questions about svg output

Displaying 20 results from an estimated 2000 matches similar to: "2 questions about svg output"

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
2010 Oct 13
2
Scripting SVG with R
Since now many browsers support (ECMA/Java-)scripted SVG, I am wondering whether there are already any examples of inserting R code into SVG documents (or a Javascript canvas?) either directly, or perhaps more likely through a JavaScript layer, to dynamically generate graphics or make them interactive? I am aware of the excellent packages gridSVG and SVGAnnotation, which facilitate making
2007 Mar 06
2
SVG and tooltips, hyperlinks
Dear all, is there a good way to create SVG plots with R whose elements have titles (tooltips) or act as hyperlinks? I am using the RSvgDevice package, which works great - but it doesn't seem to support the notion that plot objects have titles or are act as hyperlinks, so I am helping myself by giving the objects funny unique colors and then postprocessing the .svg file. I wonder
2005 Sep 03
1
producing SVG files
I am trying to use the RSvgDevice package to produce some SVG graphs which I want to edit with Inkscape 0.42. Under Linux (Kubuntu 5.04) I use the following: library(RSvgDevice) plot(1:10, 1:10) devSVG(file = "/home/adi/Rplots.svg", width = 10, height = 8, bg = "white", fg = "black", onefile=TRUE, xmlHeader=TRUE) but when I tried to load the file into Inkscape it
2016 Aug 04
2
[FORGED] Re: polypath winding rule with transparency
Hi Just to clarify, I think this IS a problem with grid.path() as well as polypath(). For the example you give, grid.path() diverts to drawing a polygon (because there is no 'id' specified), and the NAs in 'x' generate two separate polygons, which get drawn one on top of the other. The correct analogy to the polypath() example is ... x2 <- matrix(x[!is.na(x)], ncol=2)
2003 Nov 12
2
Alpha values
Hi, Does anyone know whether it is possible to construct a colour for plotting with an alpha value as well as simply specifying rgb values? Crispin -------------------------------------------------------- This email is confidential and intended solely for the use o...{{dropped}}
2017 Apr 24
1
polypath winding rule with transparency
On Thu, 4 Aug 2016 at 17:53 Michael Sumner <mdsumner at gmail.com> wrote: > On Thu, 4 Aug 2016 at 11:17 Paul Murrell <paul at stat.auckland.ac.nz> wrote: > >> Hi >> >> Just to clarify, I think this IS a problem with grid.path() as well as >> polypath(). >> >> > Hi, oh dear - sorry about that > > I appreciate the deeper explanation, I
2016 Aug 03
2
polypath winding rule with transparency
Hi, I see different results in png() and pdf() for polypath() on Windows when using the "winding" rule ## overlapping, both clock-wise x <- cbind(c(.1, .1, .6, .6, NA, .4, .4, .9, .9), c(.1, .6, .6, .1, NA, .4, .9, .9, .4)) pfun <- function() { plot(x) polypath(x * 0.8 + 0.2, rule = "winding", col = "#BEBEBE80") polypath(x, rule =
2011 Aug 08
1
Xll.options().
This question seemed to me to be more appropriate for r-devel than for r-help. My apologies if this is not the case. Recently I installed ``cairo'' on my lap-top so that I could make use of the (newish) polypath() function, with on-screen graphics. (The polypath() function does not work with X11(type="Xlib").) The installation went smoothly, X11(type="cairo") works
2013 Jul 16
1
Masking oceans using polypath
Hi R-help I am trying to mask the ocean from an image plot I have made. Here is some example code: library(mapdata) image(x=110:155, y =-40:-10, z = outer(1:45, 1:30, "+"), xlab = "lon", ylab = "lat") outline <- map("worldHires", plot=FALSE) # returns a list of x/y coords xrange <- range(outline$x, na.rm=TRUE) # get bounding box yrange
2011 Nov 18
1
How to fill irregular polygons with patterns?
Hi, I'm looking the best way to fill irregular polygons with patterns, Something like the function grid.pattern do, but my case is with irregular polygons. Whit this script I can get it, but I'm looking for an "elegant" solution.. library(grid) grid.polygon(x=c(0.2, 0.8, 0.6, 0.6, 0.8, 0.2), y=c(0.2, 0.2, 0.3, 0.5, 0.7,0.7), gp=gpar(fill="grey",
2006 Mar 27
2
svg image link
the link_to command is really nice, especially with confirm built in - wondering if there is a way to use it with SVG images since SVG doesn''t seem to work with image_tag I can display svg images (in Firefox) with the following code: <embed width=32 height=32 src="/images/quit.svg" type="image/svg+xml"></embed> "normal" link_to code:
2007 May 28
1
svg as a spescial case for image
SVG starts to become more useful in browsers like Firefox, OmniWeb, Opera and soon Safari. There is a couple problem. Since no browser support svg embedded with img one need to fall back to html from: <object data="/path/to/img.svg" type="image/svg+xml" width="512" height="384">Alt text</object> Second, one need to write the width
2010 Sep 29
1
svg plot and dashed lines
Dear users, When I boxplot(), the lines of the whiskers are dashed. However, when I save in an svg file, the dashed lines of the whiskers are not dashed anymore. How can I have the dashed lines in the svg file? I don't have this problem with a ps file, but I cannot edit such file as easily as an svg file. That's why I'd like to stick to the svg format. Thanks in advance, Ivan df
2019 Jun 19
3
point size in svg
Hello, All: ????? I'm unable to control the font size in plots to svg.? Consider the following: svg('cex-svg.svg') cex. <- 5 plot(1:2, cex.axis=cex.) text(1:2, 1:2, c('as', 'DF'), ????????? cex=cex.) dev.off() ????? When I open this in Gimp 2.10.4, the font size is tiny.? I also tried: svg('cex-svg.svg', width=15, height=15, pointsize=24) cex.
2011 Mar 14
2
svg malformed on CentOS (epel R)
There is an issue with the default svg device on a centos workstation that I am using. It does not result in an error, but it produces malformed svg images. Exactly the same script works just fine on an ubuntu box. On Ubuntu I am using R binary that comes with maverick, on centos I am using the latest R binary from EPEL. Other than that both boxes are pretty clean, with only the dependencies
2006 Mar 17
6
SVG showstopper
We seem unable to get SVG running under Rails with apparent memory conflicts between the SVG xml object and parameters. For us, unless we can get SVG running okay under Rails, it is a showstopper for us to use Rails. There seem to be only 2 examples out there for SVG, the graph project that actually converts SVG to another image format (way too cumbersome/unworkable for our needs) and the
2007 Jul 11
4
Extending Markaby for SVG
Hi all, I love the elegance of Markaby for HTML generation. I''d like to do something similar for SVG, e.g.: svg11 do title "Slide Title" rect({:x=>2,:y=>2,:width=>508,:height=>318,:fill=>"aqua"}) g({:style=>"fill:blue; stroke:black", :transform=>"translate(17,-38)"}) do circle({:cx=>70, :cy=>100,
2023 Mar 07
2
insert hyperlink into svg graphic
Perhaps this thread on stackoverflow (from a search on "include hyperlink in svg graphic") may be of use: https://stackoverflow.com/questions/41970535/a-hyperlink-in-svg-use Cheers, Bert On Tue, Mar 7, 2023 at 12:34?AM Rusty Travis <rusytravis19 at gmail.com> wrote: > Greetings, > > I am creating plots of weather data and wish to include a link to the > data source
2008 Jan 14
3
problems with .svg
Dear everybody! I am making a graph in R and employ pstoedit to expot the .pdf-output to .svg. When I open the .svg with firefox I get the .svg-code shown wit the following header: "Mit dieser XML-Datei sind anscheinend keine Style-Informationen verkn?pft. Nachfolgend wird die Baum-Ansicht des Dokuments angezeigt." Which information should how be included? Thank you in advance. Yours,