Description Usage Arguments Author(s) Examples
Embedded within a VennDiagram
object are instructions for displaying annotation
for the sets and their faces. Retrieve them so they can be edited
and re-embedded for subsequent display.
1 2 3 4 5 6 | VennGetSetLabels(object)
VennSetSetLabels(object, SetLabels)
VennGetFaceLabels(object)
VennSetFaceLabels(object, FaceLabels)
VennGetUniverseRange(object)
VennSetUniverseRange(object, universe)
|
object |
An object of class |
SetLabels |
A data.frame. The format of this data.frame may change. |
FaceLabels |
A data.frame. The format of this data.frame may change. |
universe |
An nx2 matrix defining x and y coordinates of the bounding universe. Currently assumed to have 2 rows by much of the code, corresponding to the lower left and upper right corners of a bounding rectangle |
Jonathan Swinton (jonathan@swintons.net)
1 2 3 4 5 6 7 8 9 10 11 | data(StemCell)
Vstem <- Venn(StemCell)
Vstem3 <- Vstem[,c("OCT4","SOX2","NANOG")]
Cstem3 <- compute.Venn(Vstem3,doWeights=TRUE)
plot(Cstem3)
# don't like the default position of 'SOX2'?
SetLabels <- VennGetSetLabels(Cstem3)
SetLabels[SetLabels$Label=="SOX2","x"] <- 12
Cstem3 <- VennSetSetLabels(Cstem3,SetLabels)
grid.newpage()
plot(Cstem3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.