Skip to content

Instantly share code, notes, and snippets.

@mreidsma
mreidsma / 1.Sabbatical_Proposal.markdown
Last active March 11, 2018 00:44
Stablizers of Trust: A critical study of the algorithms behind library discovery systems (2018 Sabbatical Proposal)

Sabbatical Leave Request

You must address the following criteria in your Sabbatical Leave Request. Type on this form, save as a PDF document, and upload in the electronic sabbatical leave request system under the proposal section. The proposal shall not exceed ten (10) pages, excluding references and other supporting documents.

1. Descriptive Title for the Project

Stabilizers of Trust: A critical study of the algorithms behind library discovery systems

2. Goals and Objectives

@christophergandrud
christophergandrud / topicmodels_json_ldavis.R
Last active March 13, 2021 19:00
Convert the output of a topicmodels Latent Dirichlet Allocation model to JSON for use with LDAvis
#' Convert the output of a topicmodels Latent Dirichlet Allocation to JSON
#' for use with LDAvis
#'
#' @param fitted Output from a topicmodels \code{LDA} model.
#' @param corpus Corpus object used to create the document term
#' matrix for the \code{LDA} model. This should have been create with
#' the tm package's \code{Corpus} function.
#' @param doc_term The document term matrix used in the \code{LDA}
#' model. This should have been created with the tm package's
#' \code{DocumentTermMatrix} function.
@kjhealy
kjhealy / polar-labels.r
Created February 19, 2011 02:34
Align labels nicely in circular igraph plots
### Here's one way to do it.
library(igraph)
library(ggplot2)
## The igraph docs say that vertex.label.degree controls the position
## of the labels with respect to the vertices. It's interpreted as a
## radian, like this:
##
## Value is : Label appears ... the node