# NOT RUN {
as.includegraphics("abc.pdf")
## [1] "\includegraphics[height=1em]{/Users/rmh/abc.pdf}"
## This form, with the full pathname, is required when the Hmisc::print.latex
## and related functions are used to display the current .tex file on screen.
as.includegraphics("abc.pdf", wd=".")
## [1] "\includegraphics[height=1em]{./abc.pdf}"
## This form, with the relative path, is optional when the .tex file will be
## embedded into a larger file, and will not be displayed on screen.
as.includegraphics(c("abc.pdf", "def.pdf"), raise="-1em")
## [1] "\raisebox{-1em}{\includegraphics[height=1em]{/Users/rmh/abc.pdf}}"
## [2] "\raisebox{-1em}{\includegraphics[height=1em]{/Users/rmh/def.pdf}}"
## Please see the package documentation ?microplot for a simple example in context.
## Please see the demos for more interesting examples.
## demo(package="microplot")
# }
Run the code above in your browser using DataLab