cpsievert/LDAvis

[question] How to control width of visualisation?

dselivanov opened this issue · 6 comments

I was able to get LDAvis to work with rmarkdown:
See source and corresponding page.
But the page looks a little bit ugly - width of the plot is too high.

Is it possible to adjust width of the plot?

@cpsievert sorry for bothering you. I'm wondering if there is simple way to do that or not?

It can be done in the source code of ldavis.js or you can put ldavis inside iframe and specify width and hight for that iframe

@MarcinKosinski thx for response. I'm full noob in web dev and js. Can you share some code or point some examples?

Talking about random modification of javascript code you should pay attention to lines
https://github.com/cpsievert/LDAvis/blob/master/inst/htmljs/ldavis.js#L39-L53

Talking about random modification of javascript code you should pay attention to lines

I tried to play with these parameters, but without much success.