Skip to main content

All Questions

Tagged with
0 votes
0 answers
70 views

Errors/artifacts when opening ggplot2 SVG in Inkscape

I have a script which saves creates a simple plot in ggplot2 and saves it as an SVG: library(ggplot2) x <- seq(1, 20, length.out = 1000) y <- sin(x) df <- data.frame(x=x, y=y) ggplot(df, ...
Tom's user avatar
  • 8,690
4 votes
2 answers
428 views

ggplot PDF import to Inkscape adds extra hollow circles to geom_point dots when using alpha

How to prevent Inkscape from adding extra circles to geom_point() dots when using alpha (transparency) when importing a ggplot figure in .pdf format? Make figure: ggplot(mtcars,aes(wt,mpg)) + ...
rempsyc's user avatar
  • 934
2 votes
1 answer
1k views

Operating on SVG files with a large number of elements

Assume an SVG file that was generated via R, represents a graph with about 160000 data points and whose file size is more than 20 MiB. Specifically, let us assume that this SVG file contains 160000 ...
Michael Gruenstaeudl's user avatar
1 vote
1 answer
778 views

How to Adjust Font Size of a ggplot in inkscape?

When I export ggplots from R (with ggsave in svg) to modify them in inkscape, I run into the following problem: I use the text tool to select some text (axis labels for example). If I want to ...
maxpe's user avatar
  • 316
1 vote
1 answer
99 views

Crop lines in R plot with InkScape

I have created some plots in R using the following code. The data files are pasted below. I have not been able to create a picture file to upload here, but the figure can be recreated with this code,...
Mark Miller's user avatar
1 vote
0 answers
125 views

Weird result with R grImport from Inkscape "trace bitmap"

I'm trying to use some svg logos in a plot. Problem is that I have them in png, and trace them in Inkscape. All looks good in Inkscape, but when I use the grImport package to insert the logo in my R ...
habana's user avatar
  • 317
1 vote
0 answers
783 views

Color Gradient Issue when Importing PDF into Inkscape

I am making a figure with a colorbar in R, which I am importing into InkScape for annotations, etc. My workflow is to create the figure in R, save it as a PDF, and import that PDF into InkScape. ...
Sam Zipper's user avatar
2 votes
1 answer
275 views

R copy to inkscape 0.92

I'm new using R. My friends usually use inkscape for finishing their R plots. They use RStudio and Inkscape v0.92, after they make the plots in RStudio Export > Copy to Clipboard > Copy as ...
Daniel Valencia C.'s user avatar
2 votes
1 answer
520 views

Rstudio pdf export imported in Inkscape [duplicate]

I'm trying to export pdf of ggplot-generated figures for post-processing in Inkscape using various methods: ggsave(), pdf(), dev.copy2pdf() and Rstudio export via GUI (3x3 size). library(ggplot2) df ...
Viachaslau Bernat's user avatar
2 votes
2 answers
770 views

R svg or RdevSVG boxplots fail to open in both Illustrator and Inkscape

I am exporting simple boxplots using R and as these figures should be used for publication I export them as svg using both R svg() and RdevSVG() drivers. svg ( "svg.svg") boxplot(list, main="Title",...
Stefan's user avatar
  • 21
1 vote
0 answers
703 views

Keep italic font while exporting as SVG in R

I am trying to export a figure as SVG from R to Inkscape (I am using RStudio 0.98.1102 and R version 3.1.2). Here is my script. library(ggplot2) Gene<-c("Gene1","Gene2","Gene1","Gene2") count1<...
tlorin's user avatar
  • 1,130
0 votes
0 answers
156 views

What's the difference between svg() and devSVG()?

What is the difference between svg() and devSVG() of of the RSvgDevice package? I have trouble imprting plots of svg() into Illustrator but plots of RSvgDevice seem to work fine. Inkscape seems to ...
ECII's user avatar
  • 10.6k
6 votes
1 answer
782 views

Why doesn't Inkscape correctly read PDF files generated by R?

Very often, I draw graphs in R and export them in pdf or svg. Then I import them in Inkskape or Illustrator. Sometimes this generates weird results. For instance, when I generate a simple scatterplot ...
PAC's user avatar
  • 5,336
9 votes
5 answers
6k views

R & Inkscape: text labels in SVG graphics exported from R did not recognized as a text in Inkscape

I constructed dendrogram in R with the code: data(iris) aver<-sapply(iris[,-5],function(x) by(x,iris$Species,mean)) matrix<-dist(aver) clust<-hclust((matrix),"ave") clust$labels<-row....
Newbie_R's user avatar
  • 655
4 votes
1 answer
2k views

Inkscape too slow when importing R plots [closed]

I am trying to import R plots for editing in inkscape (tried bot svg and pdf). Once I do so inkscape becomes too slow. Is there any solution to this problem? I tried to simplify the paths through PATH/...
anle's user avatar
  • 93

15 30 50 per page