Slide 104 causes code error

Data Society – Home Forums Clustering and finding patterns Slide 104 causes code error

This topic contains 3 replies, has 2 voices, and was last updated by  Merav Yuravlivker 1 year, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18105

    JayC
    Participant

    My Achievements

    Concept review passed! IconSection completed! IconConcept review passed! IconCourse completed! IconConcept review passed! IconSection completed! IconExercise set done! IconSection completed! IconAnswered a post IconPost published! IconFeedback given! IconExercise done! IconConcept review passed! IconQuiz completed IconCourse completed! IconSetup completed! Icon

    The call to ggpairs shown on slide 104 causes R to return an error indicating that the “params =” call has been deprecated and that a wrap() function should be used instead.

    What does that mean and how do I figure out how to use ggpairs?

    #18108

    Merav Yuravlivker
    Keymaster

    My Achievements

    Concept review passed! IconExercise set done! IconConcept review passed! IconExercise set done! IconConcept review passed! IconExercise set done! IconExercise set done! IconConcept review passed! IconConcept review passed! IconSection completed! IconConcept review passed! IconSection completed! IconConcept review passed! IconConcept review passed! IconExercise set done! IconExercise set done! IconSection completed! IconConcept review passed! IconSection completed! IconAnswered a post IconFeedback given! IconExercise done! IconConcept review passed! IconQuiz completed IconCourse completed! IconSetup completed! Icon

    Hi JayC,

    Thank you for your comment – the params() function is deprecated in the latest version of R. I recommend you take out that argument entirely, and just use ggpairs on the data set that you want to use. This means that it won’t have the color orange, but it should work. Let me know if you need any more support!

    Best,
    Merav

    #18109

    JayC
    Participant

    My Achievements

    Concept review passed! IconSection completed! IconConcept review passed! IconCourse completed! IconConcept review passed! IconSection completed! IconExercise set done! IconSection completed! IconAnswered a post IconPost published! IconFeedback given! IconExercise done! IconConcept review passed! IconQuiz completed IconCourse completed! IconSetup completed! Icon

    I figured out the wrap function (I think). The call looks something like this:

    ggpairs(NBA.viz,
    lower = list(continuous = wrap(“smooth”, color = “orange”)),
    diag = list(continuous = wrap(“barDiag”, color = “blue”)))

    which creates orange and blue bars.

    #18111

    Merav Yuravlivker
    Keymaster

    My Achievements

    Concept review passed! IconExercise set done! IconConcept review passed! IconExercise set done! IconConcept review passed! IconExercise set done! IconExercise set done! IconConcept review passed! IconConcept review passed! IconSection completed! IconConcept review passed! IconSection completed! IconConcept review passed! IconConcept review passed! IconExercise set done! IconExercise set done! IconSection completed! IconConcept review passed! IconSection completed! IconAnswered a post IconFeedback given! IconExercise done! IconConcept review passed! IconQuiz completed IconCourse completed! IconSetup completed! Icon

    Nicely done! We will update the code in the materials to reflect this change.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.