JetBrains / lets-plot-kotlin

Grammar of Graphics for Kotlin
https://lets-plot.org/kotlin/
MIT License
422 stars 36 forks source link

No indication of removed records #81

Open holgerbrandl opened 3 years ago

holgerbrandl commented 3 years ago

In ggplot the user is notified if records were removed due to NA. E.g.

$ ggplot(msleep, aes(sleep_total, rem_proportion)) + geom_point(size=4, alpha=0.3)

## Warning: Removed 22 rows containing missing values (geom_point).

In letsplot there is currently no such indication, which may lead to wrong conclusions about data.

alshan commented 3 years ago

Looks like helpful info. Is this optional in ggplot?

holgerbrandl commented 3 years ago

It's the default. I never tried to switch it off, because I like its rationale. However, it seems possible to do so on a per geom level , see https://stackoverflow.com/questions/13286531/how-to-suppress-warnings-when-plotting-with-ggplot