Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nanoplot: data area fill color is not column-specific #1602

Open
lgaborini opened this issue Mar 8, 2024 · 0 comments
Open

Nanoplot: data area fill color is not column-specific #1602

lgaborini opened this issue Mar 8, 2024 · 0 comments

Comments

@lgaborini
Copy link

With {gt} 0.10.1, it seems that data_area_fill_color is applied to all nanoplot columns.
The other options seem column-specific so far (I didn't check everything yet)!

library(gt)
library(tidyverse)

gt::illness |>
   gt::gt(
      rowname_col = "test"
   ) |>
   gt::cols_nanoplot(
      columns = contains("day"),
      options = gt::nanoplot_options(
         data_point_fill_color = "orange",
         data_line_stroke_color = "yellow",
         data_area_fill_color = "red",
         data_point_radius  = 15,
      ),
      new_col_name = "plot_progression"
   ) |>
   gt::cols_nanoplot(
      columns = contains("norm"),
      options = gt::nanoplot_options(
         data_point_fill_color = "lightblue",
         data_area_fill_color = "blue",
         data_line_stroke_color = "green",
      ),
      new_col_name = "plot_norm"
   )

image

Created on 2024-03-08 with reprex v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Next / Ready for Dev
Development

No branches or pull requests

2 participants