Function to compare two fitted idealstan models by plotting ideal points. Assumes that underlying data is the same for both models.
id_plot_compare(model1 = NULL, model2 = NULL, scale_flip = FALSE,
return_data = FALSE, labels = NULL, hjust = -0.1,
palette = "Set1", color_direction = 1, text_size_label = 2,
rescale = FALSE)
The first model to compare
The second model to compare
This parameter is set to true if you have two models that are reflected around the ideal point axis. This can happen as a result of identification and is harmless.
Whether to return the underlying data
TRUE
or FALSE
, whether to use labels for points
The horizontal adjustment of point labels
colorbrewer
palette name
Whether to reverse the color scale
Size of point labels
Whether to rescale the estimates from two models so they will match regardless of arbitrary scale shifts in the ideal points