geom_point

Row

Scatter Chart with geom_point

p <- ggplot(dat, aes(x=xvar, y=yvar)) +
            geom_point(shape=1)      # Use hollow circles
ggplotly(p)

geom_smooth Linear Regression

p <- ggplot(dat, aes(x=xvar, y=yvar)) +
            geom_point(shape=1) +    # Use hollow circles
            geom_smooth(method=lm)   # Add linear regression line
ggplotly(p)
## `geom_smooth()` using formula 'y ~ x'

Row

geom_smooth with Smoothed Fit

p <- ggplot(dat, aes(x=xvar, y=yvar)) +
            geom_point(shape=1) +    # Use hollow circles
            geom_smooth()            # Add a smoothed fit curve with confidence region
ggplotly(p)
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'