gradient_rect | R Documentation |
Rectangle with color gradient fill
gradient_rect(
xleft,
ybottom,
xright,
ytop,
col,
gradient = "x",
border = par("fg"),
...
)
xleft , ybottom , xright , ytop |
|
col |
|
gradient |
|
border |
|
... |
additional arguments are ignored. |
This function was inspired by the plotrix::gradient.rect()
function in the plotrix R package. The function is
simplified here, and requires a vector of colors in col
.
Other jam utility functions:
blockArrowMargin()
,
find_colname()
,
fold_to_log2fold()
,
get_se_assaydata()
,
handle_highlightPoints()
,
log2fold_to_fold()
,
logAxis()
,
outer_legend()
,
points2polygonHull()
,
update_function_params()
,
update_list_elements()
jamba::nullPlot(xlim=c(0,5), ylim=c(0,5), xaxt="s", yaxt="s");
gradient_rect(xleft=1,
ybottom=1,
xright=2.5,
ytop=2.5,
col=jamba::getColorRamp("Reds", n=15))
gradient_rect(xleft=2.5,
ybottom=2.5,
xright=4,
ytop=4,
gradient="y",
col=jamba::getColorRamp("Reds", n=15))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.