condorPlotCommunities | R Documentation |
This function will generate the network link 'heatmap' with colored dots representing within-community links and black dots between-community links
condorPlotCommunities(
condor.object,
color_list,
point.size = 0.01,
xlab = "SNP",
ylab = "Gene"
)
condor.object |
output of either |
color_list |
vector of colors accepted by |
point.size |
passed to |
xlab |
x axis label |
ylab |
y axis label |
produces a plot
output.
For the condor paper http://arxiv.org/abs/1509.02816, I used 35 colors from the "Tarnish" palette with "hard" clustering
http://tools.medialab.sciences-po.fr/iwanthue/ for a nice color generator at
r = c(1,1,1,2,2,2,3,3,3,4,4);
b = c(1,2,3,1,2,4,2,3,4,3,4);
reds <- c("Alice","Sue","Janine","Mary")
blues <- c("Bob","John","Ed","Hank")
elist <- data.frame(red=reds[r],blue=blues[b])
condor.object <- createCondorObject(elist)
condor.object <- condorCluster(condor.object)
condorPlotCommunities(condor.object,
color_list=c("darkgreen","darkorange"),point.size=2,
xlab="Women",ylab="Men")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.