Question

In: Statistics and Probability

year elevation nest_id density_stems wall_thickness 2010 high 10-056 3.18471338 3.1 2010 high 10-011 4.45859873 5.5 2010...

year elevation nest_id density_stems wall_thickness
2010 high 10-056 3.18471338 3.1
2010 high 10-011 4.45859873 5.5
2010 high 10-124 7.00636943 3.5
2010 high 10-199 7.96178344 3.6
2010 high 10-217 7.96178344 4.3
2010 high 10-066 8.59872612 3.1
2010 high 10-087 9.87261147 4
2010 high 10-099 10.1910828 1.8
2010 high 10-110 11.4649682 3
2010 high 10-105 13.3757962 5.8
2010 high 10-082 16.2420382 2.8
2010 high 10-118 17.5159236 3.2
2010 high 10-152 17.5159236 4.1
2010 high 10-213 17.5159236 4.8
2010 high 10-147 18.1528662 4
2010 high 10-106 18.4713376 3
2010 high 10-053 18.4713376 3.7
2010 high 10-107 19.7452229 4.5
2010 high 10-018 20.3821656 2.9
2010 high 10-208 20.7006369 4.3
2010 high 10-159 21.3375796 3.8
2010 high 10-083 21.656051 3.2
2010 high 10-037 21.656051 3.4
2010 high 10-117 21.9745223 3.7
2010 high 10-051 22.611465 3.5
2010 high 10-164 23.566879 2.8
2010 high 10-211 25.1592357 2.9
2010 high 10-214 27.0700637 4.2
2010 high 10-039 28.9808917 5.1
2010 high 10-081 31.2101911 2.1
2010 high 10-190 31.2101911 3.7
2010 high 10-148 31.5286624 3.5
2010 high 10-184 34.3949045 3.3
2010 high 10-158 38.5350319 3.5
2010 high 10-100 43.9490446 4.4
2010 high 10-166 59.5541401 3.5
2010 low 10-060 1.27388535 1.6
2010 low 10-103 1.27388535 1.7
2010 low 10-068 2.22929936 3.3
2010 low 10-142 3.18471338 0.8
2010 low 10-067 4.45859873 1.7
2010 low 10-179 4.77707006 1.6
2010 low 10-160 6.05095541 1.5
2010 low 10-113 8.59872612 2.2
2010 low 10-151 8.91719745 1.2
2010 low 10-091 8.91719745 1.7
2010 low 10-072 10.1910828 3.5
2010 low 10-041 10.8280255 1.8
2010 low 10-173 11.1464968 2.4
2010 low 10-189 11.4649682 1.3
2010 low 10-145 11.7834395 2.6
2010 low 10-059 13.6942675 3.4
2010 low 10-119 15.2866242 1.8
2010 low 10-086 16.2420382 1.8
2010 low 10-025 16.2420382 3.9
2010 low 10-130 17.1974522 3
2010 low 10-002 19.4267516 2.7
2010 low 10-129 23.8853503 1.1
2010 low 10-188 25.477707 2.5

Hw to display the difference in mean nest wall thickness between altitudes with a violin plot using the R studio with ggplot2? ( Dependent: wall thickness; Independent: elevation) And could you please show me both graph and code? Thanks!!

Solutions

Expert Solution

Sol:

Use R studio

R code was

library(readxl)
nest_wall_thickness <- read_excel("C:/Users/Downloads/nest_wall_thickness.xlsx")
View(nest_wall_thickness)

head(nest_wall_thickness)
library(ggplot2)
# Basic violin plot
p <- ggplot(nest_wall_thickness, aes(x=elevation, y=wall_thickness)) +
geom_violin()
p

# violin plot with mean points
p + stat_summary(fun.y=mean, geom="point", shape=23, size=5,color="brown")

output:

Rscreenshot


Related Solutions

In a high elevation lake in Peru lives a population of guppies. There are 75 guppies...
In a high elevation lake in Peru lives a population of guppies. There are 75 guppies in this lake, 60 of which have blue tails, while the remaining 15 have yellow tails. Tail color in guppies is controlled by a single gene. Which of the following statements about this population of guppies is true? Blue guppies can be either homozygous dominant or heterozygotes. The yellow guppies exhibit the recessive phenotype. Tail color in this population can evolve. All of these...
Water at 70°F flows by gravity from a large reservoir at a high elevation to a...
Water at 70°F flows by gravity from a large reservoir at a high elevation to a smaller one through a 55-ft-long, 2-in-diameter cast iron piping system that includes four standard flanged elbows, a well-rounded entrance, a sharp-edged exit, and a fully open gate valve. Taking the free surface of the lower reservoir as the reference level, determine the elevation z1 of the higher reservoir for a flow rate of 10 ft3/min. The density and dynamic viscosity of water at 70°F...
A professional cyclist has been training for months at HIGH ELEVATION in preparation for a race...
A professional cyclist has been training for months at HIGH ELEVATION in preparation for a race at sea level. He enters the race, wins, and after being randomly drug tested by race officials is accused of blood doping. What did race officials likely find? 2. Why does the blood COLLOID OSMOTIC PRESSURE remain unchanged across the length of a capillary bed? It is roughly 25 mm Hg on the arterial end and 25 mm Hg on the venous end.
Distance 3.4 1.8 4.6 2.3 3.1 5.5 0.7 3.0 Damage 26.2 17.8 31.3 23.1 27.5 36.0...
Distance 3.4 1.8 4.6 2.3 3.1 5.5 0.7 3.0 Damage 26.2 17.8 31.3 23.1 27.5 36.0 14.1 22.3 Distance 2.6 4.3 2.1 1.1 6.1 4.8 3.8 Damage 19.6 31.3 24.0 17.3 43.2 36.4 26.1 Generate the Simple linear regression results and Parameter estimates table in StatCrunch for the least-squares regression equation and include them with your submission.
Distance 3.4 1.8 4.6 2.3 3.1 5.5 0.7 3.0 Damage 26.2 17.8 31.3 23.1 27.5 36.0...
Distance 3.4 1.8 4.6 2.3 3.1 5.5 0.7 3.0 Damage 26.2 17.8 31.3 23.1 27.5 36.0 14.1 22.3 Distance 2.6 4.3 2.1 1.1 6.1 4.8 3.8 Damage 19.6 31.3 24.0 17.3 43.2 36.4 26.1 Interpret the slope by circling the correct answers and filling in the blanks. See pp. 194-195 in the course text. “If the distance between the fire and nearest fire station [ increases | decreases ] by ___________ mile(s), the amount of damage [ increases | decreases...
Distance 3.4 1.8 4.6 2.3 3.1 5.5 0.7 3.0 Damage 26.2 17.8 31.3 23.1 27.5 36.0...
Distance 3.4 1.8 4.6 2.3 3.1 5.5 0.7 3.0 Damage 26.2 17.8 31.3 23.1 27.5 36.0 14.1 22.3 Distance 2.6 4.3 2.1 1.1 6.1 4.8 3.8 Damage 19.6 31.3 24.0 17.3 43.2 36.4 26.1 Does the y-intercept for this regression model have practical meaning in this context? If so, interpret it. Otherwise, explain why not. Recall, the value of the explanatory variable is 0 for the y-intercept. See page 195 in the course text.
Distance 3.4 1.8 4.6 2.3 3.1 5.5 0.7 3.0 Damage 26.2 17.8 31.3 23.1 27.5 36.0...
Distance 3.4 1.8 4.6 2.3 3.1 5.5 0.7 3.0 Damage 26.2 17.8 31.3 23.1 27.5 36.0 14.1 22.3 Distance 2.6 4.3 2.1 1.1 6.1 4.8 3.8 Damage 19.6 31.3 24.0 17.3 43.2 36.4 26.1 Write the equation (formula) for a residual and then calculate its value “by hand” for the observation in the data set whose distance between the fire and nearest fire station (in miles) is 3.0; show your work. Based on this value, was the observation overestimated (below...
The temperature of the atmosphere near the Earth's surface (up to an elevation of 10 km)...
The temperature of the atmosphere near the Earth's surface (up to an elevation of 10 km) can be approximated with T(z) = 288 – 0.0065z °K. Determine the Pressure at an elevation of 3000 m, if it is at z = 0, P = 101 kPa
From 2010-2020 discuss the market performance in that 10 year period. What were some of the...
From 2010-2020 discuss the market performance in that 10 year period. What were some of the major drivers of performance during that decade?
For the diprotic weak acid H2A, Ka1 = 3.1 × 10-6 and Ka2 = 6.6 ×...
For the diprotic weak acid H2A, Ka1 = 3.1 × 10-6 and Ka2 = 6.6 × 10-9. What is the pH of a 0.0700 M solution of H2A? What are the equilibrium concentrations of H2A and A2– in this solution? pH= [H2A]= [A^2-]=
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT