Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use R studio to plot the required plot. Given result by a pdf of the plot and the screenshot of the code. Thank you.

image text in transcribedimage text in transcribedPlease use R studio to plot the required plot. Given result by a pdf of the plot and the screenshot of the code. Thank you.

radius = c(1,3,5,7) volume = 4/3*pi*radius^3 Plot the results but make sure that you change the plot titles. These are some basic plotting options: 'main' puts a title on the top of the plot, xlab' labels the x axis, ylab labels the y axis. ylim sets the limits of the y axis xlim sets the limits of the x axis Then the plot command works like this: plot (radius, volume,main="you should make a better title than this", xlab="this label needs to make sense", ylab="put something sensible here", ylim=c(0,1500),xlim=c(-1,9)) You can make the plot look a lot nicer if you change the options. I usually change plotting options: col changes the colour. I usually give it a number but you can spell it out 'lwd is the line width. If I change this from the default I usually give it a value of 3. 'type' has 4 possible values {l,p, n,b} 'lty' is the type of line (line style). Give it a numeric value. Problem 1 Let's try this out but first let's tell R to put 4 plots on one figure. Specifically you should make one plot with each of the options for the 'type' parameter listed above. Each plot should also have a different main title clearly specifying which option you used and what it stands for. Each plot should have different values of col and lwd. Make sure that you label the x and y axes appropriately. Question la, (6 points): Provide a .pdf of this plot. Question lb, (1 point): provide the R code you used to make this plot

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Development Of Knowledge Framework For Affective Content Analysis

Authors: Swarnangini Sinha

1st Edition

B0CQJ13WZ1, 979-8223977490

More Books

Students also viewed these Databases questions

Question

How relevant is project management in the global economy?

Answered: 1 week ago