21.6k views
3 votes
Suppose that you have a dataframe object named df in r’s global environment. which line of code can you use to return a boxplot for the subtotal column?

1 Answer

5 votes

Final answer:

To return a boxplot for the subtotal column in R's global environment, use the boxplot(df$subtotal) line of code.

Step-by-step explanation:

To return a boxplot for the subtotal column in R, you can use the boxplot() function. Assuming the subtotal column is present in the dataframe object df, the following line of code will generate the boxplot:

boxplot(df$subtotal)

Learn more about Generating boxplots in R

User Kiranramchandran
by
7.9k points