View source: R/ucie_transformations.R
transform_data | R Documentation |
Get colours from fitted kinase data
transform_data( dataset, transform_vals, LAB_coordinates = FALSE, rownames_col = NULL, fix = TRUE, center = TRUE )
dataset |
A data frame or matrix of 3D values. |
transform_vals |
A numeric vector with 1 scaling, 3 rotation, and 3 translation values,
as calculated by |
LAB_coordinates |
Optional: boolean, whether to return CIELAB coordinates instead of RGB codes. |
rownames_col |
Optional: name of column to ignore during calculations. |
fix |
Optional: boolean, whether to force points outside the colour space inside (TRUE) or return NA (FALSE). Default is TRUE. |
dataset
can be a 2D or 3D matrix or data frame, with optional
rownames in the first column or a rownames_col
-defined column.
Returns a data frame with names and hex codes in name
and colour
(or name
/L
/a
/b
if LAB_coordinates = TRUE
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.