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

Problem with plot.percents #132

Closed
mauriziopassariello opened this issue Oct 23, 2022 · 2 comments
Closed

Problem with plot.percents #132

mauriziopassariello opened this issue Oct 23, 2022 · 2 comments

Comments

@mauriziopassariello
Copy link

Hi,
I have successfully plotted a survey with the likert package with this code:

plot(ResultPSrev, wrap=15, text.size=2.7,
group.order = c("Statement 1", "Statement 2", "Statement 3", "Statement 4", "Statement 5", "Statement 6", "Statement 7"),
type="bar")

However, when I add plot.percents=TRUE I get the following error:

Error in ddply(results[results$value > 0, ], .(Item), transform, pos = cumsum(value) - :
could not find function "ddply"

How can I show the percentages in the stacked bar?

@mauriziopassariello
Copy link
Author

PS: I have looked at the issue #130 but in my case there are no groupings.

I would very much appreciate any help from anyone that knows what the problem may be and can fix my code.

@kidwellj
Copy link

I've just hit this issue as well. I think the underlying problem is that ddply can be masked by other libraries. See here: Lhttps://github.com//issues/114

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