swirldev / swirl

:cyclone: Learn R, in R.
http://swirlstats.com
Other
1.14k stars 600 forks source link

order of lattice xyplot() arguments is specific #862

Closed stevee-bee closed 3 years ago

stevee-bee commented 3 years ago

Course: Exploratory Data Analysis Lesson: Lattice Plotting System Progress: 21%

Issue: The order of the arguments is quite specific. Not sure if this requirement can be relaxed. Below is what I entered and what I needed to change it to in order to continue with the lesson.

If the order is hard to avoid in the swirl() environment, then may I suggest rewording the prompt to list the arguments in the order expected. i.e. This time add the arguments pch set equal to 8, col set equal to "red", and main set equal to "Big Apple Data".

|=========================                                                                                              |  21%
| 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".

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

| You're close...I can feel it! Try it again. Or, type info()
| for more options.

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

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

| That's correct!

Regards, Steve

stevee-bee commented 3 years ago

My apologies for posting in the wrong repo. This has been moved to swirl_courses, issue #473.