plot_rotor: Plot rotor occupancy

Description Usage Arguments Examples

Description

Plot rotor occupancy

Usage

1
plot_rotor(df, radius = 1, size = 10, text_size = 5)

Arguments

df

Data.frame with columns

  • x: x-coordinate (numeric)

  • y: y-coordinate (numeric)

  • occupied (optional): boolean if the occupied column is missing, all positions will be considered empty.

size

Scalar numeric, symbol size

text_size

Scalar numeric, text size

Examples

1
2
3
4
df <- calculate_positions(30)
df$occupied <- FALSE
df[c(1, 11, 14, 15, 21, 29, 30), "occupied"] <- TRUE
plot_rotor(df)

tomsing1/spinr documentation built on May 3, 2019, 10:44 p.m.