updated multiplot to transpose input