#| label = "{{DataName}}FittedLinePlot",
#| fig.cap = "Plot of {{ResponseName}} versus {{PredictorName}} with fitted
#| line added."
library(ggplot2)
{{DataName}} |> select({{ResponseName}}, {{PredictorName}}) |> filter(!is.na({{ResponseName}}), !is.na({{PredictorName}})) |>
ggplot(aes(y={{ResponseName}}, x={{PredictorName}})) + geom_point() + geom_smooth(method="lm")


Try the BrailleR package in your browser

Any scripts or data that you put into this service are public.

BrailleR documentation built on July 26, 2023, 5:46 p.m.