- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to create a boxplot of single column in R data frame with column name?
To create a boxplot of single column in R data frame with column name, we can follow the below steps −
First of all, create a data frame with single numerical column and create the boxplot for that column using boxplot function.
Then, create the same boxplot with show.names argument set to TRUE.
Example
Create the boxplot
Using boxplot function to create a boxplot for single column of a data frame as shown below −
x<-rpois(25,5) df<-data.frame(x) boxplot(df)
Output
Create the boxplot with column name
Create the boxplotsame as above with show.names argumentset to TRUE asshown below −
x<-rpois(25,5) df<-data.frame(x) boxplot(df,show.names=TRUE)
Output
- Related Articles
- How to create a duplicate column in an R data frame with different name?
- How to create a column with column name for maximum value in each row of an R data frame?
- How to extract a single column of an R data frame as a data frame?
- How to rename a single column in an R data frame?
- How to filter single column of a matrix with column name in R?
- How to convert a data frame into two column data frame with values and column name as variable in R?
- How to create a data frame column with letters of both size in R?
- How to match a column in a data frame with a column in another data frame in R?
- How to create a column in an R data frame with cumulative sum?
- How to create a blank column with randomization in an R data frame?
- How to create a group column in an R data frame?
- How to create a lagged column in an R data frame?
- How to create a data frame with a column having repeated values in R?
- How to create a column with the serial number of values in character column of an R data frame?
- How to separate two values in single column in R data frame?

Advertisements