Publications by Di Cook

Axis break in R for line plot

07.11.2019

Planning to draw a density line-plot with gapped (or broken) Y-axis in R, I initially tried out the plotrix package. However after facing a couple of problems, I ended up using the standard R graphics codes to draw the correct gapped line-plot.Here I will only apply the break to the y-axis of a density line-plot, however similar metho...

3377 sym 6 img

Plotting multiple Venndiagram (or diagrams) in single screen

28.11.2019

Here is an example of plotting 4 venn diagrams in a single screen with a 2*2 layout. library(VennDiagram)#defining vectorsavbvcv# Building venndiagram grid objects (i.e. gList)abcd# Draw the diagramspushViewport(plotViewport(layout=grid.layout(2, 2)))pushViewport(plotViewport(layout.pos.col=1, layout.pos.row=1))grid.draw(a)popViewport...

989 sym 2 img

Venus (female) and Mars (male) symbols in R plot – using Unicode

31.01.2020

When analyzing a data constructed of individuals (or samples from individuals) of both male and female of a species (e.g. humans), often it is a good idea to compare the distribution of the various studied parameters for the males to those for the females. As for instance in RNAseq analysis, it is the measured expression of many genes may differ ...

1669 sym 2 img

Trades Jan. 4, 2021

05.01.2021

 Added to my base stock position, very small. +1.7 % Related To leave a comment for the author, please follow the link and comment on their blog: R and Trading. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job. Wa...

448 sym

Trades Jan. 4, 2021

05.01.2021

 Added to my base stock position, very small. +1.7 % Related To leave a comment for the author, please follow the link and comment on their blog: R and Trading. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job. Wa...

448 sym

Trades Jan. 5, 2021

05.01.2021

Sold TLT March 150 puts against my short position. Related To leave a comment for the author, please follow the link and comment on their blog: R and Trading. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job. Want ...

446 sym

Trades Jan. 5, 2021

05.01.2021

Sold TLT March 150 puts against my short position. Related To leave a comment for the author, please follow the link and comment on their blog: R and Trading. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job. Want ...

446 sym

New Book: "Computational Genomics with R"

10.02.2021

 It costs now 299$ now to sequence your genome [https://nebula.org/whole-genome-sequencing-dna-test/]. It is getting cheaper to generate genomic data and more of it is coming through. We can’t see the same trend for the people who can analyze the data. There is always a shortage of people who can do decent analysis of genomic data. We need to ...

3710 sym 2 img

New Book: "Computational Genomics with R"

10.02.2021

 It costs now 299$ now to sequence your genome [https://nebula.org/whole-genome-sequencing-dna-test/]. It is getting cheaper to generate genomic data and more of it is coming through. We can’t see the same trend for the people who can analyze the data. There is always a shortage of people who can do decent analysis of genomic data. We need to ...

3710 sym 2 img

Speeding up aldex.effect()

21.02.2021

 I’ve been optimizing various functions in ALDEx2 on Bioconductor to make it more efficient. One bottleneck has been the aldex.effect() function which calculates an effect size for the difference between distributions. I will write a separate post on how this calculation works, but I’m happy to say that the new effect size calculation is ab...

2324 sym