Error figure margins too large

Hi everyone,

I'm trying to plot a network using igraph in shiny, however I get the error that the figure margins are too large. Anyone know how to fix this? It plots fine when I run the code in RStudio.

Thanks!