Skip to content

Chapter 6 Transforms Curve Plot declaration #6

@plozano0

Description

@plozano0

Hello!

I noticed in your R iteration of your book Chapter 6, the syntax might not be supported any more. I'm specifically referring to code lines 1,008, 1,009, 1,032, and 1,033. This is when you are initializing both variables: p1 and p3.

I updated the code on my end to reflect what is below and it works perfectly.

problematic lines of code
geom_line(aes(y = ln_q, linetype = "ln(x)", color = "ln(x)"), size = 1) + # line 1008
geom_line(aes(y = sqrt_q, linetype = "sqrt(x)", color = "sqrt(x)"), size = 1) + # line 1009

Change the above code to the code below
geom_line(aes(y = ln_q, linetype = "ln(x)"), color = "black", size = 1, alpha = 1) +
geom_line(aes(y = sqrt_q, linetype = "sqrt(x)"), color = "gray", size = 1, alpha = 1) +

Also for the following lines of code:

Problematic lines of code
geom_line(data = data_l, aes(x = mid, y = count, linetype = "ln(x)", color = "ln(x)"), size = 1) + # line 1032
geom_line(data = data_s, aes(x = mid, y = count, linetype = "sqrt(x)", color = "sqrt(x)"), size = 1) + # line 1033

Change the above code to the code below
geom_line(data = data_l, aes(x = mid, y = count, linetype = "ln(x)"), color = "black", size = 1, alpha = 1) +
geom_line(data = data_s, aes(x = mid, y = count, linetype = "sqrt(x)"), color = "gray", size = 1, alpha = 1) +

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions