- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- 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 change the whisker line type in base R boxplot?

The default boxplot in R has dotted whisker lines and if we want to change it to something else, we can use the whisklty argument.

For Example, if we have a vector called X then we can create the boxplot of X with different whisker line by using the command boxplot(X,whisklty=1). The argument can take different values.

Check out the Examples given below to understand how it works.

## Example

Consider the vector given below −

x<-1:1000 boxplot(x)

## Output

If you execute the above given snippet, it generates the following Output −

Add the following code to the above snippet −

x<-1:1000 boxplot(x,whisklty=1)

## Output

If you execute all the above given snippets as a single program, it generates the following Output −

Add the following code to the above snippet −

x<-1:1000 boxplot(x,whisklty=9)

## Output

If you execute all the above given snippets as a single program, it generates the following Output −

- Related Questions & Answers
- How to change the border line type in base R boxplot?
- How to change the width of whisker lines in a boxplot using ggplot2 in R?
- How to change the color of outliers in base R boxplot?
- How to change the color of box of boxplot in base R?
- How to change the font size of main title of boxplot in base R?
- How to add a horizontal line in a boxplot created in base R?
- How to hide outliers in base R boxplot?
- How to set the range for boxplot in base R?
- How to create a horizontal boxplot 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 a rectangle inside boxplot in base R?
- How to create a boxplot without frame in base R?
- How to display star for significance in base R boxplot?