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

[ENH] Scatterplot: Draw separate regression lines for colors; add orthonormal regression #3518

Merged
merged 3 commits into from
Jan 18, 2019

Conversation

janezd
Copy link
Contributor

@janezd janezd commented Jan 7, 2019

Issue

It would be interesting to see separate regression lines for different colors - when points in the scatter plot are colored with discrete colors.

Also fixes #3519.

Description of changes

age-vs-hr

Includes
  • Code changes
  • Tests
  • Documentation

@janezd janezd changed the title Scatterplot: Draw separate regression lines for colors [RFC] Scatterplot: Draw separate regression lines for colors Jan 7, 2019
@codecov
Copy link

codecov bot commented Jan 7, 2019

Codecov Report

Merging #3518 into master will increase coverage by 0.04%.
The diff coverage is 99.2%.

@@            Coverage Diff             @@
##           master    #3518      +/-   ##
==========================================
+ Coverage   83.73%   83.78%   +0.04%     
==========================================
  Files         370      370              
  Lines       66451    66680     +229     
==========================================
+ Hits        55643    55867     +224     
- Misses      10808    10813       +5

@markotoplak
Copy link
Member

I like this a lot!

@janezd janezd force-pushed the scatterplot-multiple-reg-lines branch from 598ce05 to b2c1b7b Compare January 13, 2019 12:42
@janezd janezd changed the title [RFC] Scatterplot: Draw separate regression lines for colors [ENH] Scatterplot: Draw separate regression lines for colors; add orthonormal regression Jan 13, 2019
@janezd janezd force-pushed the scatterplot-multiple-reg-lines branch from 976004d to ff8e05f Compare January 15, 2019 13:39
@markotoplak
Copy link
Member

This seems nicely robust.

Did you intentionally decide to have different line widths for overall fit and per-class fit? The overall fit seems insignificant now, while colored lines at width=1 are hard to notice.

I would set width of all of them to 2, but I do not know how it looks on retina screens.

@markotoplak
Copy link
Member

Also, documentation should be updated, but probably not in this PR. The old docs still show some discrete features.

@janezd janezd force-pushed the scatterplot-multiple-reg-lines branch from ff8e05f to 0229552 Compare January 18, 2019 13:12
@janezd
Copy link
Contributor Author

janezd commented Jan 18, 2019

I changed widths to 2. I could now even remove the argument, but decided to keep it if we change our minds in the future.

@janezd janezd force-pushed the scatterplot-multiple-reg-lines branch 2 times, most recently from 64fc4a1 to a077e40 Compare January 18, 2019 14:43
@janezd janezd force-pushed the scatterplot-multiple-reg-lines branch from a077e40 to 6081008 Compare January 18, 2019 15:02
@markotoplak markotoplak merged commit 42ea260 into biolab:master Jan 18, 2019
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.

Scatter plot shows regression lines; orthogonal regression may be better
3 participants