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

Residual Points Persist in X-bar Chart #51

Open
drag05 opened this issue Dec 1, 2022 · 0 comments
Open

Residual Points Persist in X-bar Chart #51

drag05 opened this issue Dec 1, 2022 · 0 comments

Comments

@drag05
Copy link

drag05 commented Dec 1, 2022

The image below shows black points inside green points on an X-bar chart built by following the example in this vignette (plot title removed). The green larger points were set by my code (below). However the default black points persist. I have changed the order of layers setting individual measurement points first (faded gray) followed by average measurements green points with zero transparency and the faded points seem to have been masked by the green points.
The black points together with the lines however, are not masked by the green points.

ggQC package version: 0.0.31

Thank you!

Xbar_plot

Xbar = lapply(unique(VectorData), function(i) {
       ggplot(dtt[Item %in% i], aes(x = Sample, y = .data[['Area/\u03BCL']], group = 1L)) +
       theme_bw() + geom_point(alpha = 0.2, size = 2) +
       stat_summary(fun = 'mean', geom = 'point', size = 4, color = '#17b903') + 
       stat_summary(fun = 'mean', geom = 'line') + 
       theme(axis.text.x = element_text(size = 6, angle = 90, vjust = 0.5, hjust=1)) +
       ggtitle(sprintf('%s  | Item : %s', equip, i)) + 
       scale_x_discrete(expand = expansion(add = c(1L, 2L))) +
       stat_QC() + stat_QC_labels(text.size = 2)
    })
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

1 participant