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

Update Stat.qq #1434

Merged
merged 1 commit into from
May 3, 2020
Merged

Update Stat.qq #1434

merged 1 commit into from
May 3, 2020

Conversation

Mattriks
Copy link
Member

@Mattriks Mattriks commented May 3, 2020

  • I've updated the documentation to reflect these changes
  • I've added an entry to NEWS.md
  • I've added and/or updated the unit tests
  • I've run the regression tests
  • I've built the docs and confirmed these changes don't cause new errors

This PR:

Example

using DataFrames, Distributions
 y = randn(100).+5
ds = fit.([Normal, LogNormal], [y]) 
df = [DataFrame(y=randn(100), g=g) for g in ["Sample1", "Sample2"]]

theme = Theme(discrete_highlight_color=c->nothing, alphas=[0.5], 
    point_size=2pt, key_position=:inside)
yeqx(x=-3:3) = layer(x=x, Geom.abline(color="gray80"))
xylabs = [Guide.xlabel("Theoretical q"), Guide.ylabel("Sample q")]

p1 = plot(x=Normal(), y=randn(100), Stat.qq, yeqx, xylabs..., theme,
    Guide.title("1 sample, 1 Distribution"))
p2 = plot(vcat(df...), x=Normal(), y=:y, Stat.qq, color=:g, yeqx, 
    xylabs..., theme, Guide.title("2 samples, 1 Distribution"))
p3 = plot(x=ds, y=y, color=["Normal", "LogNormal"], Stat.qq, yeqx(3:8), 
    xylabs..., theme, Guide.title("1 sample, 2 Distributions"))
p = hstack(p1, p2, p3)

Stat_qq

@Mattriks Mattriks merged commit 40c708b into GiovineItalia:master May 3, 2020
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

Successfully merging this pull request may close these issues.

Being able to specify color for Stat.qq
1 participant