- 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 with log of the variable in base R?
To create a boxplot with log of the variable in base R, we need to use log argument within the boxplot function but we need to carefully pass the Y-axis inside the function because the values of the boxplot are plotted on the Y-axis. For example, if we have a vector called x then the boxplot of log of x will be created as boxplot(x,log="y").
Example
x<-sample(1:100,50) boxplot(x)
Output
Example
boxplot(x,log="y")
Output
- Related Articles
- How to create a horizontal boxplot in base R?
- How to create a boxplot without frame in base R?
- How to create a rectangle inside boxplot in base R?
- How to create boxplot in base R with higher width of the box lines?
- How to create boxplot for a list object in base R?
- How to create side-by-side boxplot in base R?
- How to create boxplot for multiple categories in base R?
- How to create boxplot in base R without axes labels?
- How to create boxplot for multiple categories with long names in base R?
- Create histogram with horizontal boxplot on top in base R.
- How to create a column of log with base 2 in data frames stored in R list?
- How to create a column of log with base 10 in data frames stored in R list?
- How to create a boxplot in base R without any axes except Y?
- How to fill the outliers with different color in base R boxplot?
- How to create a boxplot with outliers of larger size in R?

Advertisements