Description Usage Arguments Details Author(s) See Also

View source: R/congruencePlot.R

Plots congruence.

1 2 | ```
congruencePlot(Z, R, from=NA, to=NA, steps=10000, Zcol=1, Rcol=1,
Zlty=1, Rlty=2, Pcol=220, Pdensity=NULL, Pangle=45, ...)
``` |

`Z` |
Population vector |

`R` |
Vector for the representatives |

`from` |
Beginning of conceptual space |

`to` |
End of conceptual space |

`steps` |
Number of steps at which to evaluate the CDF |

`Zcol` |
Line colour for the population vector |

`Rcol` |
Line colour for the vector of the representatives |

`Zlty` |
Line type for the population vector |

`Rlty` |
Line type for the vector of the representatives |

`Pcol` |
Colour of the polygon |

`Pdensity` |
Density of the polygon's pattern |

`Pangle` |
Angle of the polygon's pattern |

`...` |
Additional arguments for the plot |

This function plots the cumulative distributions of the population vector an the vector for the representatives. A polygon highlights the area between the two curves. The basic arguments are the same as for the `congruence`

function which calculates the area between the two curves; the additional arguments are used to control the lines (colour, type) and polygon (colour, pattern). Use `Pcol=NULL`

to hide the polygon entirely. The beginning and end of the conceptual (policy) space can be specified if the vectors do not include the entire range of possible values. The number of steps at which the CDF are evaluated can be specified (default = 10000). Additional arguments can be passed to control the plot, like main title or axes.

Didier Ruedin

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.