get_stackoverflow_chart: Chart StackOverflow Answer Activity

Usage Arguments Details Value Examples

Usage

1
2
get_stackoverflow_chart(user = NULL, addAccepted = TRUE, showPlot = TRUE,
  max.pages = 10)

Arguments

user

StackOverflow user id

addAccepted

logical. Should the number of accepeted answers be overlayed?

showPlot

logical. Should the plot be displayed? Otherwise ggplot2 object is just returned.

max.pages

how many pages of results (100 per page) should be traversed?

Details

As per the API https://api.stackexchange.com/docs/answers-on-users, returns a data.frame of columns described in https://api.stackexchange.com/docs/types/answer for the requested user.

This function utilises both theme_github and scale_fill_social and is subject to updates to those functions.

Value

a list containing the ggplot object and data object:

list(plot = <ggplot2 object>, data = <data.frame>)

Examples

1
2
3
4
5
## Not run: 
library(butteRfly)
get_stackoverflow_chart(user = 4168169) # @Jonathan Carroll
get_stackoverflow_chart(user = 496803)  # @thelatemail 
## End(Not run)

jonocarroll/butteRfly documentation built on May 19, 2019, 7:31 p.m.