Frequently Googled Questions

Linux

  • Extract (decompress) with a file pattern (wildcard) ref
tar -xf MyTar.tar --wildcards "*.jpg"

ggplot2

  • rotate axis label ref
p + 
  theme(axis.text.x = element_text(angle = 90, hjust = 1))
  • remove legend title ref
# Remove title for fill legend
p + 
  guides(fill=guide_legend(title=NULL))

# Remove title for all legends
p + 
  theme(legend.title=element_blank())
  • legends in multiple columns/rows ref
  • A lot of interesting and useful things in this ref
  • overriding the alpha value
  • customizing the legend text angle
  • etc
p + 
  guides(col = guide_legend(nrow = 8))

Related

comments powered by Disqus