Skip to content

Instantly share code, notes, and snippets.

@gghatano
Created March 12, 2014 02:15
Show Gist options
  • Save gghatano/9499411 to your computer and use it in GitHub Desktop.
Save gghatano/9499411 to your computer and use it in GitHub Desktop.
linetype test (ggplot2)
d=data.frame(lt=c("blank", "solid", "dashed", "dotted", "dotdash", "longdash", "twodash", "1F", "F1", "4C88C488", "12345678"))
ggplot() +
scale_x_continuous(name="", limits=c(0,1), breaks=NA) +
scale_y_discrete(name="linetype") +
scale_linetype_identity() +
geom_segment(data=d, mapping=aes(x=0, xend=1, y=lt, yend=lt, linetype=lt))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment