compareplot and get.x proportion