Update PlotComps.r

Fixed typo by changing

geom_line(data = enc_null, aes(GC3, ENc))

to 

geom_line(data = enc_null, aes(GC3S, ENc))
This commit is contained in:
Katzlab 2025-06-12 04:27:20 -04:00 committed by GitHub
parent 3fe4ee3ae5
commit e7facbf6e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ enc_null <- data.frame(read_tsv('ENc.Null.tsv'))
#you need as.numeric to ensure R is reading the variable correctly #you need as.numeric to ensure R is reading the variable correctly
gc3_plot <- ggplot(gc3, aes(as.numeric(GC3.Degen), as.numeric(ObsWrightENc_No6Fold)))+ gc3_plot <- ggplot(gc3, aes(as.numeric(GC3.Degen), as.numeric(ObsWrightENc_No6Fold)))+
geom_point(size = 0.1)+ geom_point(size = 0.1)+
geom_line(data = enc_null, aes(GC3, ENc))+ geom_line(data = enc_null, aes(GC3S, ENc))+
theme_classic()+ theme_classic()+
labs(x = 'GC3 Degen', y = 'ObsWrightENc_No6fold')+ labs(x = 'GC3 Degen', y = 'ObsWrightENc_No6fold')+
theme(legend.position = 'none')+ theme(legend.position = 'none')+