swirldev / swirl_courses

:mortar_board: A collection of interactive courses for the swirl R package.
http://swirlstats.com
Other
4.25k stars 7.25k forks source link

Exploratory Data Analysis Lesson 9 Bug (needs fix) #532

Closed NEWCalPoly closed 3 months ago

NEWCalPoly commented 4 months ago

Hi, I do not know how to resolve this, but want to flag it for someone who might.

In lesson 9 (ggplot2_pt2), there is a question that states the following: | Notice that by doing this, ggplot simply ignored the outlier point at | (50,100). There's a break in the line which isn't very noticeable. Now | recall that at the beginning of the lesson we mentioned 7 components | of a ggplot plot, one of which was a coordinate system. This is a | situation where using a coordinate system would be helpful. Instead of | adding ylim(-3,3) to the expression g+geom_line(), add a call to the | function coord_cartesian with the argument ylim set equal to c(-3,3).

The correct answer results in the following error: Error in obj_is_vector(limits) : could not find function "obj_is_vector"

Importantly, the skip() function fails to work at this section of the lesson, resulting in a loop that the user cannot get out of.

Could not reproduce the error, however, on another computer.