In a boxplot, how to show that outliers exist, but not actually plot them?Ignore outliers in ggplot2 boxplotHow to put the legend out of the plotShading (or alpha) boxplots by number of datapoints with ggplot2 in RAutomatic axis limits identifing outliers in ggplot2How to make IPython notebook matplotlib plot inlineSubsetting Outliers from a data frame by using the results of a boxplot diagramggplot boxplot - length of whiskers with logarithmic axisbeeswarm plot and boxplot outliersHow to adjust space between Matplotlib/Seaborn subplots for multi-plot layoutsIgnore outliers in ggplot2 geom_violinR : Plot a boxplot with a continuous x axis : choose an interval for each box
Has SHA256 been broken by Treadwell Stanton DuPont?
What organs or modifications would be needed for a life biological creature not to require sleep?
Can I fix my boots by gluing the soles back on?
If I want an interpretable model, are there methods other than Linear Regression?
How do I say "quirky" in German without sounding derogatory?
A Mainer Expression
How would you control supersoldiers in a late iron-age society?
What officially disallows US presidents from driving?
Some Prime Peerage
Are there any “Third Order” acronyms used in space exploration?
How do I create indestructible terrain?
How to write characters doing illogical things in a believable way?
Does my opponent need to prove his creature has morph?
The Planck constant for mathematicians
Is there a real-world mythological counterpart to WoW's "kill your gods for power" theme?
In what state are satellites left in when they are left in a graveyard orbit?
sed replacing character in a file
How do certain apps show new notifications when internet access is restricted to them?
Can I tap all my opponent's lands while they're casting a spell to negate it?
Is using gradient descent for MIP a good idea?
Planar regular languages
How to control the output voltage of a solid state relay
Can druids change their starting cantrips each day?
What makes a smart phone "kosher"?
In a boxplot, how to show that outliers exist, but not actually plot them?
Ignore outliers in ggplot2 boxplotHow to put the legend out of the plotShading (or alpha) boxplots by number of datapoints with ggplot2 in RAutomatic axis limits identifing outliers in ggplot2How to make IPython notebook matplotlib plot inlineSubsetting Outliers from a data frame by using the results of a boxplot diagramggplot boxplot - length of whiskers with logarithmic axisbeeswarm plot and boxplot outliersHow to adjust space between Matplotlib/Seaborn subplots for multi-plot layoutsIgnore outliers in ggplot2 geom_violinR : Plot a boxplot with a continuous x axis : choose an interval for each box
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
In our datasets, we have a few absolutely huge outliers. If we plot (eg in a boxplot) and include the outliers, the axis will be so squeezed that it's useless. Log-scaling doesn't help. But we want to tell the reader that the outliers exist (and say how many, and on which side of the boxplot, positive or negative), preferably without adding text manually to the caption. Is there a good method for this? Preferably in R, Matplotlib or Seaborn.
This is different from eg Ignore outliers in ggplot2 boxplot because I don't want to ignore the outliers: I want to show that they exist, but not plot them.
Sample code:
# from https://stackoverflow.com/questions/5677885/ignore-outliers-in-ggplot2-boxplot
> library("ggplot")
> df = data.frame(y = c(-100, rnorm(100), 100))
> ggplot(df, aes(y = y)) + geom_boxplot(aes(x = factor(1)))
We see a boxplot that is useless because of the presence of outliers. If we follow the accepted answer at that link, we remove the outliers in a very nice way, but now the reader doesn't realise there were any outliers.
r matplotlib seaborn outliers
add a comment
|
In our datasets, we have a few absolutely huge outliers. If we plot (eg in a boxplot) and include the outliers, the axis will be so squeezed that it's useless. Log-scaling doesn't help. But we want to tell the reader that the outliers exist (and say how many, and on which side of the boxplot, positive or negative), preferably without adding text manually to the caption. Is there a good method for this? Preferably in R, Matplotlib or Seaborn.
This is different from eg Ignore outliers in ggplot2 boxplot because I don't want to ignore the outliers: I want to show that they exist, but not plot them.
Sample code:
# from https://stackoverflow.com/questions/5677885/ignore-outliers-in-ggplot2-boxplot
> library("ggplot")
> df = data.frame(y = c(-100, rnorm(100), 100))
> ggplot(df, aes(y = y)) + geom_boxplot(aes(x = factor(1)))
We see a boxplot that is useless because of the presence of outliers. If we follow the accepted answer at that link, we remove the outliers in a very nice way, but now the reader doesn't realise there were any outliers.
r matplotlib seaborn outliers
Could you post some sample data and a bit of basic code to visualise the problem?
– Thomas Kühn
Mar 28 at 10:54
Possible duplicate of Ignore outliers in ggplot2 boxplot
– Wimpel
Mar 28 at 10:54
@ThomasKühn, added code.
– jmmcd
Mar 28 at 22:12
@Wimpel, not a duplicate as described in edit.
– jmmcd
Mar 28 at 22:12
add a comment
|
In our datasets, we have a few absolutely huge outliers. If we plot (eg in a boxplot) and include the outliers, the axis will be so squeezed that it's useless. Log-scaling doesn't help. But we want to tell the reader that the outliers exist (and say how many, and on which side of the boxplot, positive or negative), preferably without adding text manually to the caption. Is there a good method for this? Preferably in R, Matplotlib or Seaborn.
This is different from eg Ignore outliers in ggplot2 boxplot because I don't want to ignore the outliers: I want to show that they exist, but not plot them.
Sample code:
# from https://stackoverflow.com/questions/5677885/ignore-outliers-in-ggplot2-boxplot
> library("ggplot")
> df = data.frame(y = c(-100, rnorm(100), 100))
> ggplot(df, aes(y = y)) + geom_boxplot(aes(x = factor(1)))
We see a boxplot that is useless because of the presence of outliers. If we follow the accepted answer at that link, we remove the outliers in a very nice way, but now the reader doesn't realise there were any outliers.
r matplotlib seaborn outliers
In our datasets, we have a few absolutely huge outliers. If we plot (eg in a boxplot) and include the outliers, the axis will be so squeezed that it's useless. Log-scaling doesn't help. But we want to tell the reader that the outliers exist (and say how many, and on which side of the boxplot, positive or negative), preferably without adding text manually to the caption. Is there a good method for this? Preferably in R, Matplotlib or Seaborn.
This is different from eg Ignore outliers in ggplot2 boxplot because I don't want to ignore the outliers: I want to show that they exist, but not plot them.
Sample code:
# from https://stackoverflow.com/questions/5677885/ignore-outliers-in-ggplot2-boxplot
> library("ggplot")
> df = data.frame(y = c(-100, rnorm(100), 100))
> ggplot(df, aes(y = y)) + geom_boxplot(aes(x = factor(1)))
We see a boxplot that is useless because of the presence of outliers. If we follow the accepted answer at that link, we remove the outliers in a very nice way, but now the reader doesn't realise there were any outliers.
r matplotlib seaborn outliers
r matplotlib seaborn outliers
edited Mar 28 at 16:59
jmmcd
asked Mar 28 at 10:47
jmmcdjmmcd
4363 silver badges14 bronze badges
4363 silver badges14 bronze badges
Could you post some sample data and a bit of basic code to visualise the problem?
– Thomas Kühn
Mar 28 at 10:54
Possible duplicate of Ignore outliers in ggplot2 boxplot
– Wimpel
Mar 28 at 10:54
@ThomasKühn, added code.
– jmmcd
Mar 28 at 22:12
@Wimpel, not a duplicate as described in edit.
– jmmcd
Mar 28 at 22:12
add a comment
|
Could you post some sample data and a bit of basic code to visualise the problem?
– Thomas Kühn
Mar 28 at 10:54
Possible duplicate of Ignore outliers in ggplot2 boxplot
– Wimpel
Mar 28 at 10:54
@ThomasKühn, added code.
– jmmcd
Mar 28 at 22:12
@Wimpel, not a duplicate as described in edit.
– jmmcd
Mar 28 at 22:12
Could you post some sample data and a bit of basic code to visualise the problem?
– Thomas Kühn
Mar 28 at 10:54
Could you post some sample data and a bit of basic code to visualise the problem?
– Thomas Kühn
Mar 28 at 10:54
Possible duplicate of Ignore outliers in ggplot2 boxplot
– Wimpel
Mar 28 at 10:54
Possible duplicate of Ignore outliers in ggplot2 boxplot
– Wimpel
Mar 28 at 10:54
@ThomasKühn, added code.
– jmmcd
Mar 28 at 22:12
@ThomasKühn, added code.
– jmmcd
Mar 28 at 22:12
@Wimpel, not a duplicate as described in edit.
– jmmcd
Mar 28 at 22:12
@Wimpel, not a duplicate as described in edit.
– jmmcd
Mar 28 at 22:12
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55395681%2fin-a-boxplot-how-to-show-that-outliers-exist-but-not-actually-plot-them%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55395681%2fin-a-boxplot-how-to-show-that-outliers-exist-but-not-actually-plot-them%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Could you post some sample data and a bit of basic code to visualise the problem?
– Thomas Kühn
Mar 28 at 10:54
Possible duplicate of Ignore outliers in ggplot2 boxplot
– Wimpel
Mar 28 at 10:54
@ThomasKühn, added code.
– jmmcd
Mar 28 at 22:12
@Wimpel, not a duplicate as described in edit.
– jmmcd
Mar 28 at 22:12