Created
July 23, 2015 20:22
-
-
Save anonymous/26a6b1ec7ac9e6808f11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# code starts here | |
library("extrafont") | |
# since you already have the font installed on the system, you don't need the following | |
#font_import(pattern="BRAILLE1.ttf", paths="C:/Users/tklee/Downloads/fonts", prompt=FALSE) | |
# the following enable PDF files to use the installed fonts | |
loadfonts() | |
# produce the PDF | |
pdf("C:/Users/tklee/Documents/Histogram_Ozone.pdf") | |
Ozone=airquality$Ozone | |
hist(Ozone, family="Braille Normal") | |
dev.off() | |
# embed the font | |
Sys.setenv(R_GSCMD="C:/Program\ Files/gs/gs9.16/bin/gswin64c.exe") | |
embed_fonts("C:/Users/tklee/Documents/Histogram_Ozone.pdf") | |
# code ends here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment