plot: plot method for rlda object

Description Usage Arguments Author(s) See Also Examples

Description

Plot a rlda object. The plot function returns three plots based on Theta matrix, Phi matrix and log-likelihood.

Usage

1
2
  ## S3 method for class 'rlda'
plot(x, burnin=0.1, maxCluster=NA, ...)

Arguments

x

a rlda object created by rlda.binomial, rlda.bernoulli or rlda.multinomial function.

burnin

a percentual of burn-in observations must be a number between 0 and 1. The default value is burnin=0.1.

maxCluster

The maximum number of cluster to be shown. The default value is maxCluster=NA which represents all clusters must be shown.

...

other arguments may be useful.

Author(s)

See Also

rlda.binomial, rlda.bernoulli,rlda.multinomial

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
#Load data
data(presence)
#Set seed
set.seed(9842)
#Hyperparameters for each prior distribution
gamma <-0.01
alpha0<-0.01
alpha1<-0.01
#Execute the LDA for the Binomial entry
res<-rlda.bernoulli(presence, 10, alpha0, alpha1, gamma,
                    5000, TRUE, FALSE)
#Plot the results
plot(res)

## End(Not run)

Rlda documentation built on May 1, 2019, 7:26 p.m.

Related to plot in Rlda...