I would like to build in R using an existing PDF file as a background. The reason I don’t want to use a different format (png, jpg, gif) is because I don’t want to lose image quality in my (existing) pdf file. Any recommendations? Many thanks!
Thanks a lot tim riffe! I found the answer in this document:
Convert pdf to ps first. Then do the rest with the grImport package:
#convert the ps to xml: PostScriptTrace("image.ps") # store the xml info in RGML format (R Graphics Markup Language): NLmap <- readPicture("image.ps.xml") #plot the image plot(etc...) par(new=T) plot(grid.picture(NLmap[-1]),etc...)
Source: https://habr.com/ru/post/908326/More articles:Weird PHP String Integer comparison and conversion - stringjquery collects all parameter values from a select box in a JSON array - jsonHow to use pthread_mutex_trylock? - cApache POI - Docx Product Release - javacompilation with maven and nexus stuck while loading artifacts - mavenRecognize images in Python - pythonHow to get wget to skip links leading to parent elements? - bashBigDecimal.movePointRight () freezes with very large numbers - javaG ++ compiler error - synthesized method is required first - c ++Using a boiler room to extract non-English articles - javaAll Articles