search for: devsvg

Displaying 14 results from an estimated 14 matches for "devsvg".

2011 Mar 13
0
devSVG error
I was using devSVG to save plots of trees using the RSVGDevice package for devSVG and tree package for the trees. When I put text into the plot, obviously there are < and > symbols. These seem to be corrupting the svg file which is XML and makes use of <> for syntax. Is there any way around this, some...
2007 Jan 04
0
dashed lines and SVG files devSVG("/folderul/unde/salvez/myplot.svg", width=10, height=10) plot(1:10, 1:10) dev.off()
Dear helpers, I have a question about the SVG device. It works fine, the SVG file is indeed produced, only the graphic differs from the R window. In the SVG file the dashed line is just a regular plain one. My toy example is: library(RSvgDevice) devSVG("myplot.svg", width=10, height=10) plot(1:10) abline(v=5, lty=?dashed?) dev.off() Is there anything more (or different) I should do? Many thanks in advance, Adrian
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 complained about finding an empty file. Then I tried the example by: devSVG() plot(1:11,(-5:5)^2, typ...
2002 Dec 27
2
RSvgDevice & sapply(plotmeans)
..., onefile=F only the first plot is shown in AllbusMeansPlots.svg. [h2 is a data.frame] ......hist and sapply works for several plots nice with RSvgDevice ! Maybe setting the title after apply is a problem, but until yet i didn't found a better solution ? library(RSvgDevice) library(gregmisc) devSVG(file = "AllbusMeanPlots.svg", width = 10, height = 8, bg = "lightblue", fg = "white", onefile=T, xmlHeader=TRUE) #par(bg="lightblue",ann=T) plt <- function(x) { plotmeans(h2[,x] ~ h2$V174,ylab=names(h2)[x],xlab="InglehartIndex",mean.lab...
2010 Sep 29
1
svg plot and dashed lines
...93, 0.321170740199536, 1.87419854190502, -0.891404432182873, 0.968745913802415, -0.85229752730528, 0.641555656821046, 1.72455661053506, -0.523097596614304, 1.26729031187194)), .Names = c("a", "b"), row.names = c(NA, -20L), class = "data.frame") library(RSvgDevice) devSVG(file="test.svg") boxplot(b~a, data=df) dev.off() -- Ivan CALANDRA PhD Student University of Hamburg Biozentrum Grindel und Zoologisches Museum Abt. Säugetiere Martin-Luther-King-Platz 3 D-20146 Hamburg, GERMANY [[alternative HTML version deleted]]
2005 Jan 10
1
Invisible plot using RSvgDevice
...lt;rect x="433.84" y="256.04" width="1.12" height="19.83" style="stroke-width:1;stroke:#000000;fill:#32CD32" /> So it seems to be the "stroke:none;fill:none" text which will let the plot be "invisible"? I use following code: devSVG( file=filename, height = plot_height, width = plot_width, xmlHeader=TRUE, onefile=TRUE) plot1<-barplot(MI, col=c('limegreen'), beside=TRUE, width = c(1,1), space = c(0,1), ylab='mutual inf.', ylim=c(0,1), main=headertext) ... dev.off() I definitly changed no code, but the plot i...
2011 Aug 30
1
R crash
...aste(names(datobj)[seq.yvar],collapse="_"), paste(selvarstr,collapse="_"), sep="_") filename <- gsub(".median", "", filename) select_mean <- summaryBy(as.formula(paste(".~",names(select)[ind.xvar])), data=select, FUN=mean) devSVG(file=paste(filename, ".svg", sep="")) par(mfrow=c(2,2)) diff_len <- length(select)-length(select_mean) for (i in seq_along(seq.yvar)){ k <- seq.yvar[i] plot(select[[k]]~select[[ind.xvar]], type="p", pch=1, xlab=names(select)[ind.xvar], ylab=names(se...
2005 Jan 05
0
RSvgDevice "stroke" question
I had a quick question on the RSvgDevice package if there are any users out there. I perused the archives and the docs and didn't see anything, maybe I missed? I have created simple boxplots via devSVG() in both Windoze and Linux and it seems that there is an attribute difference in that the Linux generated version has a "stroke:none" instead of the "stoke:#000000" that the Windoze version is generating. Therefore the lines aren't visible from the Linux generated ve...
2007 Jan 04
0
dashed lines and SVG files
...ge, the previous had an unintended subject line... Dear helpers, I have a question about the SVG device. It works fine, the SVG file is indeed produced, only the graphic differs from the R window. In the SVG file the dashed line is just a regular plain one. My toy example is: library(RSvgDevice) devSVG("myplot.svg", width=10, height=10) plot(1:10) abline(v=5, lty=?dashed?) dev.off() Is there anything more (or different) I should do? Many thanks in advance, Adrian
2006 Jan 15
0
Firefox slide show with embedded SVG
Now that T. Jake Luciani has created a working RSvgDevice package (with one function called devSVG), we can produce SVG output from ordinary plots, not necessarily just those made with grid. Since Firefox and Mozilla support SVG (in recent versions), this might be a good way to put figures in web pages in a way that can be easily scaled, and even (with tweaking) manipulated with scripts. (No...
2010 Oct 11
0
help with Cairo
Dear users, As an alternative to RSvgDevice::devSVG, I have tried using Cairo and cairoDevice. When opening the svg file from Cairo::CairoSVG() as well as from cairoDevice::Cairo_svg() in Illustrator, I got a warning message (which is damn hard to translate since I don't understand it), something like: "clipping (?) will be lost at ree...
2008 Mar 12
1
gracefully handing a library load error
I have an R program I am attempting to use to generate some SVGs. I've been using the cairoDevice library. When running a session not connected to an X session (like if I'm sshed in), attempting "library(cairoDevice)" causes: *** caught segfault *** address 0x8, cause 'memory not mapped' Traceback: 1: .C("R_gtk_setEventHandler", PACKAGE =
2010 Nov 04
2
Problems with points in plots when importing from pdf to an SVG editor
Dear R-users When trying to import graphics from an pdf-file to a Vector graphics editor (I use Inkscape, but i've confirmed the same problem on adobe products), all points in the graphics turn out as "q"s. This example displays the beaviour: pdf(file="points are weird.pdf") plot(1:5) dev.off() When importing the file to inkscape, I get five neatly arranged little
2010 Apr 05
20
SAS and R on multiple operating systems
Hi, This is not meant to be critical of R, but is intended as a possible source for improvements to R. SAS needs the competition. I am reasonably knowledgeable about R SAS-(all products including IML) SAS and R run on Windows(all flavors) UNIX(all flavors) Apple OSs Does R run on natively (no emulation)? We have quite a few users on these systems VAX-VMS Z-OS (mainframe) MVS VM/CMS(IBM)