asbviz Quarto Examples

Quarto
asbviz
htmlwidgets
Author

Alex Bresler

Published

May 16, 2022

Abstract
Testing asbviz package with quarto
Keywords

data, asbviz

Highcharts is a SVG-based, multi-platform charting library. My wrapper makes it easier to create out of the box visualizations

Basic Stuff

Basic charts that mirror highcharter examples

Some data

Code
tbl_temp_long <- citytemp %>%
  gather(city, temp, -month) %>%
  mutate(month = month %>% factor(
    ordered = T,
    levels = c(
      "Jan",
      "Feb",
      "Mar",
      "Apr",
      "May",
      "Jun",
      "Jul",
      "Aug",
      "Sep",
      "Oct",
      "Nov",
      "Dec"
    )
  ))

tbl_temp_long %>%
  hc_xy(x = "month",
        y = "temp",
        group = "city",
        type = "column"
  )

This is a quarto style caption. Super based

Utilities

Legend Isolation

Turn of legend isolation

Basic Scatter plot
iris |>
    hc_xy(x = "Sepal.Length", y = "Sepal.Width", group = "Species", opacity = 1,
        isolate_legend_group = F, theme_name = "better_unica", color_type = "discrete",
        color_palette = "lisa::Jean_MichelBasquiat_1")
mtcars |>
    hc_xy(x = "wt", y = "mpg", group = "cyl", opacity = 1, isolate_legend_group = F,
        theme_name = "clean_unica", color_type = "discrete", color_palette = "lisa::Jean_MichelBasquiat_1")

Reuse

Citation

BibTeX citation:
@online{bresler2022,
  author = {Bresler, Alex and Bresler, Alex},
  title = {Asbviz {Quarto} {Examples}},
  date = {2022-05-16},
  url = {https://basedmusings.com/posts/2022-05-16-test-qmd-asbviz/},
  langid = {en},
  abstract = {Testing asbviz package with quarto}
}
For attribution, please cite this work as:
Bresler, Alex, and Alex Bresler. 2022. “Asbviz Quarto Examples.” May 16, 2022. https://basedmusings.com/posts/2022-05-16-test-qmd-asbviz/.