Question

Use RStudio to solve this problem, thx5. Using the airquality dataset. a) b) c) d) Create side-by-side vertical boxplots to compare temperature to month for each month. Assign suitable labels and a title. Use a suitable single color for your boxplots. E,g. pink Use the rainbow color palette to color your boxplots. To do this replace col-pink with col-rainbow (n) where n is an integer chose by you. Try several different integers to see how the colors change. Use zoom to show your boxplots to your TA. e)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) Box-plot

Calling the data into R

To view first few rows of the data enter head(airquality)

To plot box plot, the function boxplot is used as shown below

And the plot would appear as below

9 8 7 8 6 5

b) Labels and Title

The labels are given to the above plot using the keywords xlab for x-axis labels and ylab for y-axis labels. Title is given using the keyword main as show below.

In the data description it is given that the temperature is collected in degrees F. Therefore, y-axis label will be "Temperature (degrees F)" and x-axis label will be "Month". The title of the graph can be given as "Boxplot of Temperature by Month"

The function is given as

And the result is given as

c) Color

Color for the plot is given using the keyword col as shown below

Result:

d) Color palette:

Rainbow color palette is used as below with integer 5

Result:

When the integer is changed from 5 to 8 the below graph appears

Boxplot of Temperature by Month 012 12 41ゆ 12 볶날 12 12 12 髦3 6 Month

e) Zoom

Click Zoom in the plot viewer, right click on the plot and save the plot

Add a comment
Know the answer?
Add Answer to:
Use RStudio to solve this problem, thx 5. Using the 'airquality' dataset. a) b) c) d)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Need 5-9 and number 11 all answered. Thx 5. How can two individuals with brown eyes(B)...

    Need 5-9 and number 11 all answered. Thx 5. How can two individuals with brown eyes(B) have a blue (b) eyed baby? Show the genotypes of the parents and Punnett square to prove your answer. What are the chances of a blue-eyed baby? 6. A homozygous tongue roller (T) is married to a non-tongue roller(t). If they have 5 children, how many of them will be tongue rollers? Use Punnett square to support and explain your answer. 7. Let's imagine...

  • Design and implement a C version of the color match program. As a starting point, use...

    Design and implement a C version of the color match program. As a starting point, use the file HW2-1-shell.c. The program should employ a reasonable algorithm that compares all pairings of colors in the palette exactly once. A color should not be compared to itself. Nor should two colors be compared to each other more than once. Your C program should print out the total component color difference for the closest pair using the print string provided in the shell...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT