Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to select a categoric/factor variable #5

Open
skanskan opened this issue Jun 18, 2017 · 1 comment
Open

Unable to select a categoric/factor variable #5

skanskan opened this issue Jun 18, 2017 · 1 comment

Comments

@skanskan
Copy link

Hello

I would like to create a plot using lattice with your addin.

xyplot(yy~xx,data=mydata)

xx is a numeric variable.
yy is a categoric variable, coded as a factor, with values such as low, medium, high.

I've tried to use "Lattice scatter plot" to create the plot but I'm unable to select the yy variable, I guess the reason is it's a categoric variable.

Could add that option too, plase?

@homerhanumat
Copy link
Owner

I think that you are thinking of lattice's stripchart() function, as in:

stripchart(Sepal.Length~ Species, data = iris, vertical = TRUE, pch = 19)

iris_strip

Would not the boxplot addin serve your purpose at least as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants