Description Usage Arguments Value Examples
View source: R/RiskFactor_plot.linear.R
To plot Risk Factor plot for linear regression
1 2 3 4 5 6 7 8 9 | RiskFactor_plot.linear(data, y, patient.names = "name",
scatter.margin = c(low = 0, left = 4, top = 3, right = 8),
scatter.color = c(Prediction = "red", Reality = "black"),
scatter.location = c(legend.x = 10, legend.y = 20),
scatter.size = c(axis = 1.5, lab = 1.5, points = 1.5, legend = 1.6,
cutoff = 1.9), heatmap.cellheight = 20, heatmap.cellwidth = 10,
cluster_cols = FALSE, cluster_rows = FALSE,
heatmap.color = c("green", "black", "red"), heatmap.size = c(row =
15, column = 15, legend = 10))
|
data |
the data you want to plot |
y |
the purpose var |
patient.names |
patient id |
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 |
four pictures
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | RiskFactor_plot.linear(
data=linearData,
y="y2",
patient.names="name",
scatter.margin = c(low=0,left=4,top=3,right=8),
scatter.color=c(Prediction="red",Reality="black"),
scatter.location=c(legend.x=10,legend.y=20),
scatter.size=c(axis=1.5,lab=1.5,
points=1.5,legend=1.6,
cutoff=1.9),
heatmap.cellheight=20,
heatmap.cellwidth=10,
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.