X-Git-Url: https://git.donarmstrong.com/?p=don.git;a=blobdiff_plain;f=posts%2Fplotting_ethnic_regions.mdwn;h=80e22c3991f7f4010fb283b7b8609bb4c494332e;hp=334eb079553903ab5a5b3e216cad97a22133f875;hb=d4b41cae1c8f0bcabc802d15a5e8c04e93b4c494;hpb=370c7137ebf0bbe154fd86fc93b440214ce491a8 diff --git a/posts/plotting_ethnic_regions.mdwn b/posts/plotting_ethnic_regions.mdwn index 334eb07..80e22c3 100644 --- a/posts/plotting_ethnic_regions.mdwn +++ b/posts/plotting_ethnic_regions.mdwn @@ -4,7 +4,7 @@ I was asked over the weekend how to plot SNPs which are associated with specific ethnicities; the following code is a really quick stab at the problem using the grid graphics engine in R. -[[!sweavealike fig=1 echo=1 results="hide" code """ +[[!sweavealike fig=1 echo=1 results="hide" code=""" require(grid) snp.position <- 1:10 snp.integers <- sample.int(5,size=length(snp.position),replace=TRUE)