Description Usage Arguments Value Examples
View source: R/RiskFactor_plot.survival.R
To plot Risk factor plot for survival plot
1 2 3 4 5 6 7 8 9 10 11 12 | RiskFactor_plot.survival(data, time, status, patient.names = NULL,
scatter.legend.text = c(code1 = "Death", code0 = "Alive"),
scatter.ylab = c(ylab1 = "Risk Score", ylab2 = "Survival Time"),
scatter.margin = c(low = 1, left = 7.5, top = 4, right = 19),
scatter.color = c(code0 = "#00dae0", code1 = "#ff9289"),
scatter.location = c(cutoff.x = 23, cutoff.y = 95, legend1.x = 35,
legend1.y = 100, legend2.x = 35, legend2.y = 40), scatter.size = c(axis
= 1.5, lab = 1.5, points = 1.5, legend = 1.6, cutoff = 1.9),
heatmap.cellheight = 20, heatmap.cellwidth = 15,
cluster_cols = FALSE, cluster_rows = FALSE,
heatmap.color = c("green", "black", "red"), heatmap.size = c(row =
15, column = 15, legend = 10))
|
data |
dataframe |
time |
time |
status |
status |
patient.names |
patient.names |
scatter.legend.text |
scatter.legend.text |
scatter.ylab |
scatter.ylab |
scatter.margin |
scatter.margin |
scatter.color |
scatter.color |
scatter.location |
scatter.location |
scatter.size |
scatter.size |
heatmap.cellheight |
heatmap.cellheight |
heatmap.cellwidth |
heatmap.cellwidth |
cluster_cols |
cluster_cols |
cluster_rows |
cluster_rows |
heatmap.color |
heatmap.color |
heatmap.size |
heatmap.size |
pictures
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | RiskFactor_plot.survival(
data=survivalData,
time="time",
status="status",
patient.names="name",
scatter.legend.text=c(code1="Death",code0="Alive"),
scatter.ylab =c(ylab1="Risk Score",ylab2="Survival Time"),
scatter.margin = c(low=1,left=7.5,top=4,right=19),
scatter.color=c(code0="#00dae0",code1="#ff9289"),
scatter.location=c(cutoff.x=23,cutoff.y=95,
legend1.x=35,legend1.y=100,
legend2.x=35,legend2.y=40),
scatter.size=c(axis=1.5,lab=1.5,
points=1.5,legend=1.6,
cutoff=1.9),
heatmap.cellheight=20,
heatmap.cellwidth=15,
cluster_cols = FALSE,
cluster_rows = FALSE,
heatmap.color=c("green", "black", "red"),
heatmap.size=c(row=15,column=15,legend=10)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.