Description Usage Arguments Value Author(s) References Examples
xy.plot.lat
produces XY plots using the lattice
package and provides coverage and consistency values. The advantage over fsplot()
(in the QCA3
package) is its larger flexibility and that it does not need a dataset to work, it just needs two vectors. Several graphic parameters can be decided by the user.
1 2 3 4 5 6 7 8 |
x |
vector containing the condition. |
y |
vector containing the outcome. |
ylim |
limits of y-axis. The default is |
xlim |
limits of x-axis. The default is |
main |
an overall title for the plot. The default is |
pch |
plotting "character". The default is |
col |
color for the plotting "character". The default is |
cex.fit |
character expansion for the parameters of fit. The defaut is |
ylab |
a title for the y-axis. The default is |
xlab |
a title for the x-axis. The default is |
pos.fit |
character. Indicates the position of the parameters of fit. The positions are |
strip.cex |
character expansion for the parameters of fit when |
necessity |
logical. Indicates if the parameters of fit are calculated for a sufficient or necessary condition. The default is |
show.fit |
logical. Indicates if parameters of fit have to be shown. The default is |
case.lab |
logical. Indicates if cases have to be labeled. The default is |
lab.pos |
a position specifier for the case labels. Values of 1, 2, 3 and 4, respectively indicate positions below, to the left of, above and to the right of the specified coordinates. The default is |
labs |
the vector of case labels. The default is |
show.hv |
logical. Indicates if horizontal and vertical lines at 0.5 have to be shown. The default is |
It returns an enhanced XY plot using the lattice
package.
Mario Quaranta
Ragin, C. C. (2008) Redesigning Social Inquiry: Fuzzy Sets and Beyond, The Chicago University Press: Chicago and London.
Schneider, C. Q., Wagemann, C. (2012) Set-Theoretic Methods for the Social Sciences, Cambridge University Press: Cambridge.
Schneider, C. Q., Wagemann, C., Quaranta, M. (2012) How To... Use Software for Set-Theoretic Analysis. Online Appendix to "Set-Theoretic Methods for the Social Sciences". Available at www.cambridge.org/schneider-wagemann
Sarkar, D. (2008) Lattice: Multivariate Data Visualization with R, Springer: Berlin.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Generate fake data to have perfect necessity
set.seed(123)
x <- runif(60, 0, 1)
y <- runif(60, 0, 1)
for(i in 1:length(y)) {
while(x[i] < y[i]) {
y[i] <- runif(1, 0, 1)
x[i] <- runif(1, 0, 1)
}
}
# Default with blue dots and pch = 1
xy.plot.lat(x, y, pch = 1, col = "blue")
# Parameters of fit in the corners with blue dots and pch = 1
xy.plot.lat(x, y, pch = 1, col = "blue", pos.fit = "corner")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.