You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Pull Request
<!--- Replace `#nnn` with your issue link for reference. -->
Fixes#932
Removes ggmosaic dependency and updates code as required by the new
error message.
<img width="625" height="267" alt="image"
src="https://github.com/user-attachments/assets/c77ae1f0-17eb-446d-b925-aaa2018a8fda"
/>
Tested with released packages and also checked the app generated on the
vignette (using-bivariate-plot) still works well on all shown cases.
The user impact might be higher than initially thought as logical,
character an ordered classes also use ggmosaic due to
[L848](https://github.com/insightsengineering/teal.modules.general/pull/935/files#diff-a91c9cc30e476470275d1bd27bcd7e6d7440c5ca75daf9cb47dfc7062f3c9137R846).
As an alternative we could use `plot(table())` which is not ggplot2
based but works with factors and characters.
<details><summary>Reproducible example</summary>
<p>
```r
# general data example
devtools::load_all("../teal.modules.general")
library("teal.data")
data <- within(teal_data(), {
CO2 <- data.frame(CO2)
})
init(
data = data,
modules = tm_g_bivariate(
x = data_extract_spec(
dataname = "CO2",
select = select_spec(
label = "Select variable:",
choices = variable_choices(data[["CO2"]]),
selected = "Type",
fixed = FALSE
)
),
y = data_extract_spec(
dataname = "CO2",
select = select_spec(
label = "Select variable:",
choices = variable_choices(data[["CO2"]]),
selected = "Treatment",
multiple = FALSE,
fixed = FALSE
)
)
)
) |> runApp()
```
</p>
</details>
0 commit comments