swirldev / swirl_courses

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

Exploratory Data Analysis Lesson 6 Error #365

Open kjm24 opened 7 years ago

kjm24 commented 7 years ago

At 21% of the lesson, the text asks: | Now rerun xyplot with the formula Ozone~Wind as the first argument | and the second argument data set equal to airquality (use the up | arrow to save typing). This time add the arguments col set equal | to "red", pch set equal to 8, and main set equal to "Big Apple | Data".

I entered:

xyplot(Ozone~Wind,data=airquality,col="red",pch=8,main="Big Apple Data")

Which corresponds with the order suggested in the text and produces the desired plot

But the program called it incorrect:

| Give it another try. Or, type info() for more options.

| Type xyplot(Ozone ~ Wind, data = airquality, pch=8, col="red", | main="Big Apple Data") at the command prompt.

Both forms should be accepted

erntan commented 2 years ago

I found this same issue, where arguments are put in a different order and are marked as incorrect when they should be accepted, with Lesson 2:

| Type abline(v = median(ppm), col = "magenta", lwd = 4) at the command
| prompt.

> abline(v = median(ppm), lwd = 4, col = "magenta")

| You almost had it, but not quite. Try again. Or, type info() for more
| options.

| Type abline(v = median(ppm), col = "magenta", lwd = 4) at the command
| prompt.

> abline(v = median(ppm), col = "magenta", lwd = 4)

| Excellent job!