title: How to plot a document topic distribution in structural topic modeling R-package?
body: <p>If I am using python Sklearn for LDA topic modeling, I can use the transform function to get a "document topic distribution" of the LDA-results like here:</p>
  
  <pre><code>document_topic_distribution = lda_model.transform(document_term_matrix)
  </code></pre>
  
  <p>Now I tried also the R structural topic models (stm) package and i want get the same. Is there any function in the stm package, which can produce the same thing (document topic distribution)?
  I have the stm-object created as follows:</p>
  
  <pre><code>stm_model &lt;- stm(documents = out$documents, vocab = out$vocab,
                         K = number_of_topics, data = out$meta, 
                         max.em.its = 75, init.type = "Spectral" )
  </code></pre>
  
  <p>But i didn't find out how I can get the desired distribution out of this object. The <a href="https://www.rdocumentation.org/packages/stm" rel="nofollow noreferrer">documentation</a> didn't really help me aswell.</p>