Shiny plot not showing

Very likely this error y is related to the dimensions of your data, you are trying to reference an un-existing position.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.