Most companies have separate stations or sections of stations. If you plan trips on HyperDia, it will tell you if the recommendation is JR or some other line. The JR stations will have signage indicating such. For example, the JR Hakodate station below. Note the big green JR on the building. If more than one company use a station, the platforms will be clearly marked.