- Install screen
sudo apt-get update
sudo apt-get install screen
- Check the version
screen --version
sudo apt-get update
sudo apt-get install screen
screen --version
Press minus + shift + s
and return
to chop/fold long lines!
# Multiple plot function | |
# | |
# ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects) | |
# - cols: Number of columns in layout | |
# - layout: A matrix specifying the layout. If present, 'cols' is ignored. | |
# | |
# If the layout is something like matrix(c(1,2,3,3), nrow=2, byrow=TRUE), | |
# then plot 1 will go in the upper left, 2 will go in the upper right, and | |
# 3 will go all the way across the bottom. | |
# |
from r cookbook, where bp is your ggplot:
Remove legend for a particular aesthetic (fill):
bp + guides(fill=FALSE) It can also be done when specifying the scale:
bp + scale_fill_discrete(guide=FALSE) This removes all legends:
rm(list=ls())
setwd("/Users/liliwang/Box/Cusum_simulation/restart3/For_paper/results/head_starts")
#date="20180311"
rho_list=seq(0,0.95,0.05)
mu_list=c(log(3),log(2),log(1.5),log(1.2),log(1),log(1),-log(1.2),-log(1.5),-log(2),-log(3)) #1-10
mu_list_str=c(paste0("log",c(3,2,1.5,1.2,1)),paste0("-log",c(1,1.2,1.5,2,3)))
data=NULL
italic
For two independent side-by-side figures, you can use two minipages inside a figure enviroment; for two subfigures, I would recommend the subcaption package with its subfigure environment; here's an example showing both approaches:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage{subcaption}