# To show you how to import, we first have to have a svg file to import. The
# following lines of code will create a svg in a temporary files:
# 1. Create temporary file
svg.file.directory <- tempfile(pattern = "ammonite",
fileext = ".svg")
# 2. Write the svg in the file
writeLines(example.ammonite.svg, svg.file.directory)
print(paste("An example .svg file was created at ", svg.file.directory,
sep = ""))
coll <- collection(dirname(svg.file.directory))
is.collection(coll)
if (FALSE) {
plot_collection(coll, cex = 1.5)
plot_collection(oufti99, name = "Oufti99")}
Run the code above in your browser using DataLab