Question
Now, start the plot; alter the default figure margins to be 5, 4, 4, and 6 lines wide on the bottom, left, top, and right,
Incorporate two separate legends following the guidelines in (i) and (ii). Both legends should be horizontal, and you should relax clipping to allow their placement in figure margins (refer to Section 23.2.3).
i. Place the first legend at the user coordinate given by x=-5 and y=265000. It should use the levels of the rank factor vector as the referencing text and pair these with the corresponding pch symbols as assigned. Include an appropriate title for the legend.
ii. The second legend should be placed next to the first, using an x-coordinate of 40 and the same y-coordinate value. This legend should show two points, both red and of type 19, but reference the two levels of sex by altering the character expansion and opacity of these to reference points as assigned.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started