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

[Bug]: disappearing plot in tm_g_distribution #765

Open
3 tasks done
chlebowa opened this issue Jul 3, 2024 · 0 comments
Open
3 tasks done

[Bug]: disappearing plot in tm_g_distribution #765

chlebowa opened this issue Jul 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chlebowa
Copy link
Contributor

chlebowa commented Jul 3, 2024

What happened?

The distribution plto becomes invisible after viewing the QQ plot.

app code
library(teal)
library(teal.modules.general)

data <- teal_data() |>
  within({
    iris <- iris
    mtcars <- mtcars
  })
datanames(data) <- c("iris", "mtcars")
modules <- modules(
  tm_g_distribution(
    dist_var = data_extract_spec(
      dataname = "iris",
      select = select_spec(variable_choices("iris"), "Petal.Length")
    )
  )
)

app <- init(data = data, modules = modules)
runApp(app)

On app start:
image

Go to QQ plot:
image

Return to histogram:
image

The plot can still be downloaded:
plot_20240703_121116

The QQ plot is still visible. The app still runs and reactivity is unaffected. Plots in other modules are unaffected.

Looks like a bug in adding the theoretical density distribution to the histogram (present in downloaded file).

sessionInfo()

> sessionInfo()
R version 4.4.0 (2024-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

> packageVersion("teal")
[1] '0.15.2.9045'
> packageVersion("teal.modules.general")
[1] '0.3.0'
> packageVersion("teal.widgets")        
[1] '0.4.2'

Relevant log output

No errors in console.

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.
@chlebowa chlebowa added the bug Something isn't working label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant