kinase2cielab | R Documentation |
Get kinase score colours based on reference colourspace
kinase2cielab(data, k = 10, rownames_col = NULL, fix = TRUE)
data |
A data frame or matrix, with the same columns as the reference
kinase scoring dataset (NetPhorest, 61 kinases), and optionally a rownames
column (see |
k |
Number of neighbours to consider. |
rownames_col |
Optional: name of a column containing rownames, set as true rownames before continuing. Allows usage of tidy data in this matrix-based function. |
fix |
Optional: boolean, whether to force points outside the colour space inside (TRUE) or return NA (FALSE). Default is TRUE. |
A data frame with columns name
and colour
. Use colours with ggplot2::scale_color_identity()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.