I think your answer is fine but you can do it more simply:
install.packages("extrafont");library(extrafont)
font_import("Trebuchet MS")
library(ggplot2)
qplot(1:10)+theme(text=element_text(family="Trebuchet MS"))
More Related Contents:
- Show percent % instead of counts in charts of categorical variables
- How to add texture to fill colors in ggplot2
- Simpler population pyramid in ggplot2
- ggplot, facet, piechart: placing text in the middle of pie chart slices
- Local Variables Within aes
- asymmetric color distribution in scale_gradient2?
- Adding minor tick marks to the x axis in ggplot2 (with no labels)
- How can I add hatches, stripes or another pattern or texture to a barplot in ggplot?
- Missing legend with ggplot2 and geom_line
- Reduce PDF file size of plots by filtering hidden objects
- ggplot separate legend and plot
- ggplot2 heatmap with colors for ranged values
- ggplot centered names on a map
- Setting absolute size of facets in ggplot2
- ggplot2 plot without axes, legends, etc
- How to fix the aspect ratio in ggplot?
- Increase resolution of color scale for values close to zero
- ggplot2 : Plot mean with geom_bar
- How to add different lines for facets
- Add number of observations per group in ggplot2 boxplot
- Add secondary X axis labels to ggplot with one X axis
- if else condition in ggplot to add an extra layer
- Remove space between bars ggplot2
- How can I add annotations below the x axis in ggplot2?
- Remove facet_wrap labels completely
- Color one point and add an annotation in ggplot2?
- SI prefixes in ggplot2 axis labels
- Add number of observations per group in boxplot
- adding x and y axis labels in ggplot2
- Administrative regions map of a country with ggmap and ggplot2