Anish
Anish

Reputation: 1950

Box Plot in R based on column names

I have a data frame in following format where my variables are the column names.

a b c
1 2 3
2 3 4
1 4 1

I want to create a box plot based column names. Do I need to do any conversion for box plot?

Upvotes: 0

Views: 747

Answers (1)

leroyJr
leroyJr

Reputation: 1160

You can feed the entire frame to boxplot and each column will be plotted individually:

boxplot(my_df) 

Upvotes: 1

Related Questions