Wednesday, May 1, 2013

Indispensable bookmarks for fixing computing annoyances

This list will no doubt grow...

Understanding GNU Emacs and Tabs
Executive summary: put this in your .emacs.el file:

(setq-default major-mode 'text-mode)
(define-key text-mode-map (kbd "TAB") 'self-insert-command); 


ggplot2: Changing the Default Order of Legend Labels and Stacking of Data
Executive summary:

ggplot(diamonds, aes(clarity, fill=cut, order= -as.numeric(cut))) 

actually, this is better, available in recent versions of ggplot2:
guides(color = guide_legend(reverse = TRUE))



No comments:

Post a Comment