Exporting graphics for Illustrator¶
You can't just open PNGs or JPEGs in Illustrator, they need to be a vector format, which means a PDF or an SVG.
Exporting from Datawrapper¶
In Datawrapper, click the PDF or SVG button on the final publish page. You'll only have these options if you're on a fancy account, either under my team or as a paid subscriber.
Exporting from Altair¶
Altair has plenty of options for visualization, and is simple to export. Plot your graphic normally...
import altair as alt
alt.Chart(df).mark_circle().encode(
x='gdp_per_capita',
y='life_expectancy',
color='continent',
size='population'
)
Then click the ...
button in the top right-hand side and click Save as SVG.
Exporting from ggplot¶
If you're using R, use the magic of ggsave
!
%%R -i df
library("ggplot2")
p <- ggplot(df, aes(x=gdp_per_capita,
y=life_expectancy,
color=continent,
size=population)) +
geom_point()
ggsave("plot.pdf", plot=p, width=10, height=7)
Exporting from RAWgraphs¶
Exporting from RAWGraphs is easy: click the Export button when it says svg
.
Exporting from Flourish¶
I hate Flourish, but you can export SVGs from it!
Go through the export flow, select that you want to export an image, then change the format to SVG.