Skip to content

Commit bbd0e0f

Browse files
committed
changing x^3 expression in plot
1 parent fc8a6cb commit bbd0e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regression2.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ have been replaced by `z` values.
857857
```{r 08-predictor-design-2, message = FALSE, warning = FALSE, echo = FALSE, fig.height = 3.5, fig.width = 4.5, fig.cap = "Relationship between the transformed predictor and the response."}
858858
curve_plt2 <- ggplot(df, aes(x = z, y = y)) +
859859
geom_point() +
860-
xlab(paste0("z = ", expression(x^3))) +
860+
xlab(expression(paste("z = x"^"3"))) +
861861
ylab("y") +
862862
geom_smooth(method = "lm", se = FALSE)
863863

0 commit comments

Comments
 (0)