[Tex/LaTex] How to rotate a large matrix in Lyx

lyxrotating

I have a large adjacency matrix in LyX.

How can I rotate it to fit the page?

enter image description here

Alternative: you see that the commands such as the \begin{landscape}...\end{landscape} are not interpreted as commands in Lyx. How to type them in Lyx?
enter image description here

Best Answer

Right-click on "Float: Table", click on "Settings", and check "Rotate sideways".

To insert custom LaTeX code in LyX (where you mention \begin{landscape}), go to Insert > TeX Code (ctrl + L on Ubuntu). This is referred to as "ERT".