StatisticsNZ / simplevis

Simple visualisation with ggplot2 and leaflet wrappers
https://StatisticsNZ.github.io/simplevis
Other
86 stars 11 forks source link

alpha_line doesn't work in vis with points, due to coord_cartesian(clip = "off") #422

Closed davidhodge931 closed 2 years ago

davidhodge931 commented 2 years ago

In ggplot2, alpha does not work in lines where coord_cartesian(clip = "off")

simplevis has used coord_cartesian(clip = "off") whenever there is points, so that points on the limits are not cut in half.

Therefore this issue applies to geoms with points and lines: smooth, boxplot, hboxplot, line, pointrange, hpointrange

davidhodge931 commented 2 years ago

Updated boxplot/hboxplot, & violin/hviolin

point fine as is, as no lines

Still to work out what to do with line, pointrange/hpointrange & smooth

davidhodge931 commented 2 years ago

This is due to ggplot bug #4754

davidhodge931 commented 2 years ago

Due to windows plus default graphics device. Change to Cairo and it works

davidhodge931 commented 2 years ago

https://github.com/tidyverse/ggplot2/issues/4570