Skip to content

Commit e4bacfa

Browse files
committed
Oct 12, 2022, 6:24 PM
1 parent c38d983 commit e4bacfa

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

lecture-07-inclass.Rmd

+27-1
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,35 @@ ggplot(pileup_df, aes(x = coords)) +
6060
```
6161

6262
```{r}
63-
ts4 <- readxl("~/Desktop/Nagalakshmi_etal_from_TableS4.xls")
63+
library(readxl)
64+
```
65+
66+
67+
```{r}
68+
ts4 <- read_excel(
69+
"~/Desktop/Nagalakshmi_etal_2008_from_TableS4.xls")
70+
```
71+
72+
73+
```{r}
74+
ggplot(ts4,
75+
aes(x = SGD_Start,
76+
y = Chrom,
77+
width = SGD_End - SGD_Start + 1,
78+
fill = Transcription_level_log2,
79+
height=0.5)) +
80+
81+
scale_fill_distiller(palette="RdYlBu",
82+
#direction=-1,
83+
na.value = "white",
84+
limits = c(0,10)) +
85+
geom_tile() +
86+
theme_classic()
87+
88+
ggsave("expression-output.png", dpi=600)
6489
```
6590

6691

6792

6893

94+

0 commit comments

Comments
 (0)