GetResultTgCellPlot | R Documentation |
This function collects gene pairs from one interaction (between 2 target clusters), and related gene attributes (subcellular location, expression), action properties (action mode and action effect). Then, all those informations are summarized.
GetResultTgCellPlot(
object,
area.extend.times = 10,
hide.other.area = TRUE,
hide.locations.X = NULL,
hide.locations.Y = NULL,
hide.some.genes.X = NULL,
hide.some.genes.Y = NULL,
hide.sole.vertices = TRUE,
expand.gap.radius.list = list(ECM = 2, CTP = 2, NC = 2, OTHER = 2),
expand.shift.degree.list = list(ECM = 90, CTP = 30, NC = 30, OTHER = 30),
expand.gap.degree.list = list(ECM = 180, CTP = 60, NC = 60, OTHER = 60),
expand.center.density.list = list(ECM = 0.25, NC = 0.25, OTHER = 0.25),
expand.outside.cut.percent.list = list(ECM = 0.03, NC = 0.03, OTHER = 0.03),
expand.PM.gap.len = 2,
locate.PM.method = "uniform",
nodes.size.range = c(6, 12),
nodes.size.gap = 1,
nodes.fill.updn = c("#D07F86", "#7AAF7A"),
nodes.colour = c("lightgrey"),
nodes.alpha = 1,
nodes.shape = 21,
nodes.stroke = 0,
label.size.nodes = c(3, 3),
label.colour.nodes = c("black", "black"),
label.vjust = c(0, 0),
label.hjust = c(1, 0),
label.nudge.x = c(0, 0),
label.nudge.y = c(2, 2),
label.padding.itself = list(unit(0.25, "lines"), unit(0.25, "lines")),
label.size.itself = c(0.25, 0.25),
link.size = 0.6,
link.colour = c("#D70051", "#00913A", "#1296D4", "#956134", "#F46D42", "#0A0AFF",
"#762A83", "#B5B5B6"),
link.alpha = 1,
link.linetype = c("solid", "solid", "solid", "44"),
link.arrow.angle = c(20, 90, 60, 0),
link.arrow.length = c(12, 6, 8, 0),
link.arrow.type = c("closed", "open", "open", "open"),
legend.show.fill.updn.label = c("UP", "DN"),
legend.show.fill.override.point.size = 3,
legend.show.size.override.colour = "black",
legend.show.size.override.stroke = 0.7,
legend.show.size.override.size.proportion = 1,
legend.manual.left.spacing = unit(0.2, "cm"),
legend.manual.internal.spacing = unit(0.6, "cm")
)
object |
A |
area.extend.times |
Its default value is 10, which can handle most cases. If too many genes are collected, users should enlarge this value until those genes can be allocated. |
hide.other.area |
If set TRUE, genes with no subcellular location other than 'Other' will be removed from result as well as plotting area:Other. |
hide.locations.X |
It removes genes (from cluster.X) in given subcellular locations from result. |
hide.locations.Y |
It removes genes (from cluster.Y) in given subcellular locations from result. |
hide.some.genes.X |
It removes genes (from cluster.X) from result. |
hide.some.genes.Y |
It removes genes (from cluster.Y) from result. |
hide.sole.vertices |
It decides whether to hide sole genes which have no available relation with other genes. |
expand.gap.radius.list |
Numeric. It defines the minimum distance between points(genes) for each plotting area. |
expand.shift.degree.list |
Numeric. It defines the begin degree that points(genes) are to be drawn. The degree is calculated counter-clockwise. |
expand.gap.degree.list |
Numeric. It defines the way that points(genes) arrange. If it is set 180 and shift degree is set 90, then points will be aligned in vertical line. If it is set 90 and shift degree is set 0, then points will be put counter-clockwise from horizontal line to vertical and then back to horizontal and finally at vertical place. |
expand.center.density.list |
Numeric. It defines the density in each plotting area. Higher value means points concentrating more around the center of the area, and lower value means more sparse. |
expand.outside.cut.percent.list |
Numeric. It is used to restrict plotting area range against center point in each plotting area. The value of this parameter defines the width of outside not-drawing area, and if is set 0, means plotting over the total area, or if is set 0.5, means plotting inside circle of half radius. |
expand.PM.gap.len |
It defines the gap of each points(genes) plotted in area:Plasma Membrane. The larger value means sparser the points being plotted, while smaller denser. |
locate.PM.method |
It defines the way to allocate points(genes) plotted in area:Plasma Membrane. It supports 2 methods for now: 'random' and 'uniform'. |
nodes.size.range |
Numeric of length 2. The former gives the minimum size, while the latter gives the maximum. Node(genes) sizes are reflecting the actual LogFC value of every gene. |
nodes.size.gap |
It is used along with |
nodes.fill.updn |
Character of length 2. It defines the 2 colours used to distinguish the up-regulated and down-regulated nodes(genes). |
nodes.colour |
Color of nodes. |
nodes.alpha |
Alpha of nodes. |
nodes.shape |
Use shape reprentable IDs(in integer) or directly shape description(in character). See ggplot2 for details |
nodes.stroke |
Stroke size of nodes. See details in ggplot2. |
label.size.nodes |
It defines the size of label text on nodes(genes). If get length 2, the former defines size of nodes in the left part of graph, and the latter corresponds to the right part of graph. |
label.colour.nodes |
It defines the colour of label. |
label.vjust |
It defines the vertical alignment value for labels. |
label.hjust |
It defines the horizontal alignment value for labels. |
label.nudge.x |
It defines the slight adjustment movement along x-axis when plotting. |
label.nudge.y |
It defines the slight adjustment movement along y-axis when plotting. |
label.padding.itself |
It defines the padding size of label. |
label.size.itself |
It defines the size of label itself(includes padding, etc). |
link.size |
Size of link width. |
link.colour |
Colour of links, the length should be same as |
link.alpha |
Alpha of links. |
link.linetype |
Linetype of links. |
link.arrow.angle |
Angle of link arrow. |
link.arrow.length |
Length of link arrow. |
link.arrow.type |
Type of link arrow, either |
legend.show.fill.updn.label |
Character of length 2. It gives the labels putting in legend:fill. |
legend.show.fill.override.point.size |
Numeric. It changes the size of template points used in legend:fill. |
legend.show.size.override.colour |
Character. It changes the colour of template points used in legend:colour. |
legend.show.size.override.stroke |
Numeric. It changes the stroke of template points used in legend:colour. |
legend.show.size.override.size.proportion |
Numeric. It changes the size of template points used in legend:size, to avoid unbalanced large or small size shown in legend. |
legend.manual.left.spacing |
Unit. It spcifies the left spacing of the manual legend to ggplot2 automatically-generated legends. |
legend.manual.internal.spacing |
Unit. It defines the spacing between 2 manual legend about action mode and action effect. |
All parameters starts with 'label.' can be specified of 2 values or only 1 value. As the graph contains 2 cells (drawn like it), with 1 cell put in the left side and the other put in right side, there are some situations that number of nodes(genes) is quite unbalanced between them. The label may hard to be placed properly. To deal with this problem, this function gives the way to specify different label patterns for each part. That's why parameters started with 'label.' can be set of 2 values as well as 1 value.
List. Use Tool.ShowPlot()
to see the plot, Tool.WriteTables()
to save the result table in .csv files.
plot: the object of ggplot2.
grid.plot: graphical output generated from grid.
table: a list of data.frame
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.