m_style_sphere: Specify Styling for Sphere

Description Usage Arguments Examples

View source: R/style.R

Description

Styling options for the sphere representation. Used inside m_add_style() and m_set_style().

Usage

1
2
3
4
5
6
7
8
m_style_sphere(
  scale = 1,
  colorScheme = "default",
  color = NULL,
  radius = NULL,
  hidden = FALSE,
  opacity = 1
)

Arguments

scale

Scale radius by specified amount.

colorScheme

Specify scheme to color the atoms by. Default is "default". Other choies are "Carbon", ssPyMOL", "ssJmol", "Jmol", "default", "amino", "shapely", "nucleic", "chain", "chainHetatm", "prop".

color

Discrete, fixed coloring, overrides any colorScheme.

radius

Override van der waals radius.

hidden

Boolean - do not show atom. Default FALSE.

opacity

Opacity of spheres, 0 being invisible. Must be the same for all atoms in the model.

Examples

1
2
3
4
r3dmol() %>%
  m_add_model(data = pdb_1j72, format = "pdb") %>%
  m_set_style(style = m_style_sphere(radius = 0.5)) %>%
  m_zoom_to()

r3dmol documentation built on March 14, 2021, 5:08 p.m.