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

Color grouping for density2d #1508

Merged
merged 1 commit into from
Jan 6, 2021
Merged

Conversation

Mattriks
Copy link
Member

@Mattriks Mattriks commented Jan 5, 2021

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

This PR

Example

using RDatasets
geyser, iris = dataset("datasets", "faithful"), dataset("datasets", "iris")
geyser.g = geyser.Eruptions.>3

p1 = plot(geyser, x=:Eruptions, y=:Waiting, color=:g, linestyle=[:solid], 
        Geom.density2d(levels=4), Geom.point, alpha=[0.4])
p2 = plot(iris, x=:SepalLength, y=:SepalWidth, color=:Species,  Geom.density2d(levels=4), Geom.point, alpha=[0.8])
hstack(p1, p2)

density2d

@codecov-io
Copy link

Codecov Report

Merging #1508 (7b65f26) into master (d78d866) will increase coverage by 0.78%.
The diff coverage is 96.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1508      +/-   ##
==========================================
+ Coverage   88.94%   89.72%   +0.78%     
==========================================
  Files          39       39              
  Lines        4395     4625     +230     
==========================================
+ Hits         3909     4150     +241     
+ Misses        486      475      -11     
Impacted Files Coverage Δ
src/geom/line.jl 100.00% <ø> (ø)
src/statistics.jl 96.45% <96.77%> (-0.01%) ⬇️
src/ticks.jl 91.09% <0.00%> (-0.28%) ⬇️
src/shapes.jl 100.00% <0.00%> (ø)
src/geom/point.jl 100.00% <0.00%> (ø)
src/geom/ribbon.jl 100.00% <0.00%> (ø)
src/geom/violin.jl 100.00% <0.00%> (ø)
src/geom/boxplot.jl 100.00% <0.00%> (ø)
src/geom/polygon.jl 100.00% <0.00%> (ø)
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d78d866...7b65f26. Read the comment docs.

@Mattriks Mattriks merged commit c60cc91 into GiovineItalia:master Jan 6, 2021
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.

Geom.density2d with color grouping
2 participants