I am using the popular ggplot2 package for R to make my scientific plots.
The transparency doesn't seem to work at all in affinity designer (1.10.5) with a very basic plot. All background appears black.
Browsers and Inkscape open it just fine.
The R code is really basic:
library(ggplot2)
theme_update(
panel.background = element_rect(fill = "transparent"), # bg of the panel
plot.background = element_rect(fill = "transparent", color = NA),
legend.background = element_rect(fill = "transparent"), # get rid of legend bg
legend.box.background = element_rect(fill = "transparent", colour = NA), # get rid of legend panel bg
legend.key = element_rect(fill = "transparent", colour = NA)
)
ggplot(cars, aes(speed, dist)) +
geom_point()
ggsave("test.svg")
ggsave("test.png")
I am attaching the test.svg file.
Your help would be much appreciated.
Best,
Jonas
test.svg