This function creates a plant growth meter visualization.

plant_growth(
  fill_level = 0.5,
  potWidth = 100,
  potHeight = 40,
  plantMaxHeight = 150,
  stemColor = "#228B22",
  potColor = "#8B4513",
  flowerColor = "#FF69B4",
  strokeColor = "#333",
  strokeWidth = 2,
  renderFillLabel = TRUE,
  titleText = "Plant Growth",
  titleColor = "#333",
  titleFontSize = "14px",
  font = "sans-serif"
)

Arguments

fill_level

Numeric between 0 and 1 indicating growth level.

potWidth

Width of the pot.

potHeight

Height of the pot.

plantMaxHeight

Max height of plant stem.

stemColor

Color of the plant stem and leaves.

potColor

Color of the pot.

flowerColor

Color of the flowers that bloom when growth is high.

strokeColor

Outline color for the pot.

strokeWidth

Outline width.

renderFillLabel

Whether to display a growth label.

titleText

Title shown below the pot.

titleColor

Title color.

titleFontSize

Font size of the title.

font

Font family.