ez.heatmap | R Documentation |
plot a heatmap with values shown
ez.heatmap(
df,
id,
show.values = F,
remove.zero = T,
angle = 270,
colors = c("blue", "white", "red"),
basesize = 9,
xsize = 1,
ysize = 1,
legend.position = "right",
theme.apa = TRUE
)
df |
data frame in wide format, like a correlation matrix |
id |
a column name as id, will be shown as x axis, quoted "" |
show.values |
whether to show values in addition to color in the plot |
remove.zero |
remove the leading 0 as in correlation, 0.02->.02 (0.00 becomes "<.01")
|
angle |
the x axis label angle, default=270 (vertical), suggests 330 if label is not too long |
colors |
low, middle, high |
basesize |
base font size |
xsize |
x axis label font relative size |
ysize |
y axis label font relative size |
legend.position |
"bottom", "top", "left", "right", "none" |
a ggplot object (+theme_apa() to get apa format plot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.