Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to remove outlier Outliers in boxplot drawing by R language

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "R language how to remove outliers Outliers in boxplot drawing". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "R language how to remove outliers from boxplot drawings Outliers" it!

Box chart (Box-plot), also known as box chart, box chart or box chart, is a statistical chart used to display a group of data dispersion data. It gets its name because it is shaped like a box. It is also often used in various fields, often in quality management. It is mainly used to reflect the characteristics of the original data distribution, and can also be used to compare the distribution characteristics of multiple groups of data. The method of drawing a box chart is to find out the maximum, minimum, median and two quartiles of a group of data, then connect two quartiles to draw the box, and then connect the maximum and minimum values to the box. the median is in the middle of the box.

Sometimes we need to remove outliers from boxplot, which we can do with boxplot in R language:

Get the index of outliers:

OutVals = boxplot (x) $outwhich (x% in% OutVals)

If you want to delete outliers:

X [! X% in% OutVals]

Do not want to draw, just want to get the result can be like this:

OutVals = boxplot (x, plot=FALSE) $out here, I believe you have a deeper understanding of "R language how to remove outliers Outliers in boxplot drawing". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report