powered by
Returns a spread-location plot.
gg_sl( df, vble, group, jitterwidth = 0.1, jitteralpha = 0.5, linecol = "red", ylabel = expression(sqrt(abs(" Residuals "))), xlabel = "Medians" )
dataframe
numeric variable to be analized
grouping character or factor variable
width argument for geom_jitter
alpha argument for geom_jitter
col argument for geom_line
y-axis label
x-axis label
a ggplot object with the spread-location plot
# NOT RUN { library(ggplot2) gg_sl(fusion, time, nv.vv) gg_sl(fusion, time, nv.vv, jitterwidth = 0.4, linecol = "blue", jitteralpha = 1) + scale_color_discrete("Grupo") + xlim(2, 8) # }
Run the code above in your browser using DataLab