Description Usage Arguments Author(s) Examples
View source: R/twideology-functions.R
Displays summary of estimated ideology
1 2 |
object |
object of class 'twideology' |
... |
ignored |
Pablo Barbera pablo.barbera@nyu.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
## Creating OAuth token
my_oauth <- list(consumer_key = "CONSUMER_KEY",
consumer_secret = "CONSUMER_SECRET",
access_token="ACCESS_TOKEN",
access_token_secret = "ACCESS_TOKEN_SECRET")
## download list of friends for a given user
friends <- getFriends(screen_name = "p_barbera", oauth=my_oauth)
## estimating ideology
results <- estimateIdeology(user, friends)
## summary
summary(results)
## trace plot
tracePlot(results, "theta")
## ideology plot
plot(results)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.