Code Monkey home page Code Monkey logo

Comments (5)

const-ae avatar const-ae commented on May 28, 2024

Hi, thanks for your interest in my package.
I am not quite sure what you mean by "comparison by column"?
You can make a plot where the x-axis is a logical value:

library(ggplot2)
library(ggsignif)
ggplot(mpg, aes(x = class== "compact", y = hwy)) +
  geom_boxplot() +
  geom_signif(comparisons = list(1:2))

image

If I misunderstood your question, could you please provide a reproducible example (what exactly is in the person data frame).

from ggsignif.

Villete avatar Villete commented on May 28, 2024

Hi,
I have a similar problem.
I have a table where I have qualitative values (0n,1,0-2,2-,2+) in one column and quantitative data in other columns. I would like to show significance over each group of my quailtative values, but I only get the warning

"In wilcox.test.default(c(82.60,100,-5.26,73.33,    : 
cannot compute exact p-value with ties".

Here is my Code so far:

ggplot(I_80_alle_100,aes(group=Bonitur,x=Bonitur,y=Quotient.100,fill=Quotient.100))+
geom_boxplot(outlier.shape=3)+
geom_signif(comparisons=list(group=I_80_alle_100$Bonitur),map_signif=TRUE)`

Do I get the warning because of my quanitative values are between +100 and -100?

from ggsignif.

wuffi avatar wuffi commented on May 28, 2024

Thanks a lot for your quick answer.
Even when I run your code (from above), I get the following error message:
"Error: No stat called StatSignif."

Changing geom_signif to stat_signif results in Error: No geom called GeomSignif..

I don't have quite the latest version of R, but ggsignif is "2017-04-26".

platform       x86_64-redhat-linux-gnu     
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          3                           
minor          2.2                         
year           2015                        
month          08                          
day            14                          
svn rev        69053                       
language       R                           
version.string R version 3.2.2 (2015-08-14)

from ggsignif.

const-ae avatar const-ae commented on May 28, 2024

@wuffi, that is really strange. Could you please try to re-install the package, because it seems that ggplot cannot find the StatSignif object.
If that does not help, you would have to try it on the latest version of R, because I really don't know what else could produce the error.

@Villete, the warnings you get from the wilcox.test are not a problem, they just mean that an approximation had to be used, because the data values where not unique. See this thread for a more detailed discussion.

from ggsignif.

wuffi avatar wuffi commented on May 28, 2024

Hi const-ae,
Thanks a lot for your quick answer. Re-installing the package helped and it works now fine!
The package is really helpful and I think there is a need for it.

from ggsignif.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.