Plot a CrossLink object

cl_plot(
  object,
  layout = NULL,
  link = NULL,
  cross = NULL,
  label = NULL,
  header = NULL,
  add = NULL,
  annotation = cl_annotation()
)

Arguments

object

a CrossLink object

layout

the layout to be plot. Set NULL to plot current active layout

link

a named list of arguments for links. see ggplot2::geom_segment(). Set NULL to use default settings, or Set NA to not show.

cross

a named list of arguments for crosses. see ggplot2::geom_point(). Set NULL to use default settings, or Set NA to not show.

label

a named list of arguments for node labels. see ggplot2::geom_text(). Set NULL to use default settings, or Set NA to not show.

header

a named list of arguments for headers. see ggplot2::geom_text(). Set NULL to use default settings, or Set NA to not show.

add

other gg object to be added to final plot, such as theme().

Value

a ggplot2 object

Details

For link, cross, label, header: "geom" is restricted for setting geom function, such as list(geom = "arc") for link.

Examples