0.load the data and install packages

0.1 Set work directory

setwd("~/gitbook")

0.2 Load the data

data <-read.table("box_plots_mtcars.txt",header=T,sep="\t")
df <- data[, c("mpg", "cyl", "wt")]

df2 <-read.table("histogram_plots.txt",header=T,sep="\t")

df3 <- read.table("volcano_plots.txt", header=TRUE)

df4 <- read.table("manhattan_plots_gwasResults.txt",header=T,sep="\t")

df5 <-read.table("heatmaps.txt",header=T,sep="\t")
dm <- data.matrix(df5[1:nrow(df5),2:ncol(df5)])
row.names(dm) <- df5[,1]

df6 <- read.table("ballon_plots_GO.txt", header=T, sep="\t")

df7 <- read.table("box_plots_David_GO.txt",header=T,sep="\t")
df7 <- df7[1:10,]

0.3 Install and library packages

0.4. Save the plot

If you want to save the plot, please use "pdf(), dev.off()" or "ggsave()". The second one is specific for the ggplot2 package.

For example,

Last updated