Description Usage Arguments Author(s)
View source: R/pdb_functions2.R
Generate colors to be used when generating a PyMol script
1 2 3 4 5 6 7 8 | color.pymol(
vars,
colors = NULL,
png.name = "pymol_legend%03d.svg",
gray0 = FALSE,
print.legend = TRUE,
start.num = 1
)
|
vars |
List of variables to be used |
colors |
List of either PyMol colors, hexcodes, or standard colors in R. Will also accept color palette names from RColorBrewer and viridis. If left as NULL, will use standard PyMOL tint colors. |
png.name |
Name of the legend output. Defaults to "pymol_legend.jpg" unless otherwise specified. |
gray0 |
If TRUE, will shift color palette and replace 1st color as gray (corresponds 0 if using frequency). Defaults to FALSE. |
start.num |
Starting number for custom color, change if additional custom colors are being used |
Emma Gail
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.