Calculates the Jensen-Shannon distance for countries

get_JSd_corpus(top, .df = df, .plot = FALSE)

Arguments

top

one possible value for the topic column of the data.frame

.df

a data.frame

.plot

logical, if TRUE returns a plot, if not returns the Jensen-Shannon distance

Value

the Jensen-Shannon distance or a ggplot object depending on .plot