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 2 years, 9 months ago.

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

    JayC
    Participant

    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

    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

    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

    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.