rsquaire takes a wide-format dataframe.

dat <- tibble::tibble(
  state = c("AL", "NY", "FL"),
  stat = c(15, 16, 25)
)

The constructor function will look for a column called ‘state’ and a column called ‘value’ by default. To change the variable name for coloring, use the index arguement.

library(rsquaire)
rsquaire(dat, index = "stat")