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

Blurring when plotting densities #31

Open
PhilippPro opened this issue Jul 9, 2020 · 3 comments
Open

Blurring when plotting densities #31

PhilippPro opened this issue Jul 9, 2020 · 3 comments

Comments

@PhilippPro
Copy link
Member

PhilippPro commented Jul 9, 2020

There should be some blurring when plotting densities in autoplot such that the density in the background is also visible. I have seen this problem here: https://mlr3book.mlr-org.com/tasks.html in 2.2.5

There is also some overlapping of numbers here: https://mlr3book.mlr-org.com/train-predict.html in 2.4.6

@pat-s
Copy link
Member

pat-s commented May 30, 2022

@PhilippPro Could you eventually add a reprex that showcases the issue?

Both links from your OP are broken unfortunately.

@PhilippPro
Copy link
Member Author

Wow, this issue is very old. ;)

I guess the density issue is kind of solved.
I took some code from here: https://mlr3book.mlr-org.com/special-tasks.html

# FIXME:
[library](https://rdrr.io/r/base/library.html)(["mlr3"](https://mlr3.mlr-org.com/))
[library](https://rdrr.io/r/base/library.html)(["mlr3proba"](https://mlr3proba.mlr-org.com/))

task = [tsk](https://mlr3.mlr-org.com/reference/mlr_sugar.html)("precip")
[print](https://rdrr.io/r/base/print.html)(task)

# histogram and density plot
[library](https://rdrr.io/r/base/library.html)(["mlr3viz"](https://mlr3viz.mlr-org.com/))
[autoplot](https://ggplot2.tidyverse.org/reference/autoplot.html)(task, type = "overlay")

There was some blurring now, although the plot does not look very professional:
image

@PhilippPro
Copy link
Member Author

The overlap of numbers issue is still valid.

In https://mlr3book.mlr-org.com/basics.html I can see several plots where the numbers at the x-axis are overlapping

Here an example:
image

Maybe not a very big issue as users can change plots manually. This is kind of a ggplot2 problem.

In general it would be even nicer to have plotly plots instead of only ggplot2 plots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants