Displaying 20 results from an estimated 2000 matches similar to: "Using SVG in R"
2011 Mar 08
2
positions and margins differ between X11 and SVG device
Hi,
I'm trying to get a plot ready for publication, which involves getting
it to look nice at a rather small size and to fine-tune positioning all
the labels and sizes of the margins.
I realise that I may not be doing this the right way and I welcome any
comments about better approaches to do this. What I have done so far is
open an X11 device with the size I want for the final output and I
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
2015 Nov 05
2
PDFs and SVGs containing rasterGrobs don't display correctly in some other software
I've just been trying to post-process some R-created heatmaps using
Inkscape, but I can't get them to display correctly in that software.
To reproduce:
library(grid)
r <- as.raster(matrix(runif(25), 5, 5))
pdf("test.pdf")
grid.newpage()
grid.raster(r, interpolate = FALSE)
dev.off()
This figure should be a five by five block of grey squares. This is
what I see in the R GUI
2011 May 19
2
Error in svg() : cairo-based devices are not supported on this build
Hello,
Sorry if it is not the right place..
I installed R-2.13.0 on a x86_64 linux server.
All went fine, but the svg() function yells:
> svg()
Error in svg() : cairo-based devices are not supported on this build
I have the Cairo, cairoDevice, RSvgDevice packages installed, and running.
> Cairo.capabilities()
png jpeg tiff pdf svg ps x11 win
TRUE TRUE TRUE TRUE TRUE
2007 Jan 27
6
Theora in SVG+JavaScript?
Hi, I was just reading on Adobe
Flash<http://en.wikipedia.org/wiki/Adobe_Flash>and the components
which make it up: SWF, ActionScript, and FLV.
>From what I've read, SVG is competing with SWF as the format of vector
graphics in web design, while ActionScript is an ECMAScript like JavaScript.
Hence, SVG + Javascript can provide an interactive, animated, open,
non-proprietary web
2011 Jul 22
4
glmnet with binary logistic regression
Hi all,
I am using the glmnet R package to run LASSO with binary logistic
regression. I have over 290 samples with outcome data (0 for alive, 1 for
dead) and over 230 predictor variables. I currently using LASSO to reduce
the number of predictor variables.
I am using the cv.glmnet function to do 10-fold cross validation on a
sequence of lambda values which I let glmnet determine. I then take
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
2005 Sep 07
1
Compiling Apache 2.0.54 on CentOS 4.1
Has anyone gotten Apache 2.0.54 to build on CentOS 4.1? Apache
2.0.52(distrbiuted with CentOS
4.1) compiles file. This is the error:
/scratch/apache2.src/httpd-2.0.54/srclib/apr/libtool --silent --mode=link
gcc -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER
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,
2009 Jan 21
1
Italics in svg output display as bold (PR#13463)
Full_Name: Yan Wong
Version: 2.8.1
OS: Mac OS X 10.4
Submission from: (NULL) (78.149.167.246)
When printing a plot to and svg file, text intended to be in italics is rendered
in bold (svg file viewed using both Safari 3.2.1 and Firefox 2.0.0.9.
For example, try viewing the test.svg file generated by
svg("test.svg", width=4,4,8)
plot.new();
2009 Jul 31
1
SVG output on Windows OS
How may one save a graphic as svg on Windows? The svg() command is
recognized and functions well on Linux, etc., but not on Windows, it seems.
I'm trying to use Hadley Wickam's ggplot2 and I would like to be able to
save created charts as svg for later input into Illustrator. I am able to
accomplish this workflow under Linux, but I don't know how to get R to
recognize the svg() command
2006 Mar 11
8
SVG in Rails
How can I show an SVG image in a view - I only see how to use jpgs or
pngs
--
Posted via http://www.ruby-forum.com/.
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
2006 Aug 31
2
R-Project logo in SVG format
Hi,
I'm looking for a version of the R-Project logo in SVG format. I've found
the bitmapped versions,
http://developer.r-project.org/Logo/
but would prefer a scalable version as it usually looks better when
printed.
Where may I find one?
-Lars
Lars Nooden (lars at umich.edu)
On the Internet, nobody knows you're a dog ...
... until you start barking.