Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embed_fonts() causes broken wireframe when drape is translucent #41

Open
linyangchen opened this issue Aug 16, 2014 · 0 comments
Open

Comments

@linyangchen
Copy link

When making translucent wireframe plots using the lattice package, embed_fonts() causes the wires to be rendered as dashed lines when they should be solid lines.

# R version 3.1.1
# x86_64-apple-darwin13.1.0
# OS X 10.9.4

require(extrafont)
loadfonts(device = 'pdf')

require(lattice)

# translucent colours for drape
col.regions <- paste(grey(seq(0, 1, length.out = 100)), '99', sep = '')

pdf('volcano.pdf')

wireframe(
    volcano,
    lty = 1,
    drape = T, col.regions = col.regions
)

dev.off()
embed_fonts('volcano.pdf')

This happens whatever the value of the family argument in pdf(), and only when translucent colours are used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant