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) +
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.
Also for the following lines of code: