Search results

  1. gianmarco

    Submission of package to CRAN: problem grasping an Error

    Hello, I have submitted an R package to CRAN; the package is quite small, as it features just one function and three toy datasets. Before submitting to CRAN for evaluation, I have run a check within RStudio (hitting the 'check' button), and fortunately I got no error nor warnings nor notes. I...
  2. gianmarco

    Canonical Correspondence Analysis: how to interpret results

    I am not familiar with CCA, but it has indeed some aspects in common to other dimensionality-reduction techniques which I do know. I will try to give you my two cents on the matter. I think that your interpretation is essentially correct. If a dashed prolongation intersects the vector...
  3. gianmarco

    Function out of my package only works after being copied/pasted...Why?

    Uhmmm....I see.... I will read those documents for sure. What I got from a quick overview is that Imports is "safer" than Depends. Seems ok. But, am I right in understanding that, if I use Imports instead of Depends, I should always indicate within a function of mine to which package a function...
  4. gianmarco

    Function out of my package only works after being copied/pasted...Why?

    Thanks for your comment. Could you please elaborate a little more on "my suggestion to use imports when possible"? What does it mean using imports from a practical standopoint? EDIT: Am I supposed to modify the 'Description' file, and to switch from Depends to Imports?
  5. gianmarco

    Function out of my package only works after being copied/pasted...Why?

    Sorry for not being clear, my bad. I mean that, when you run the function, it does not work. If you copy and paste the whole function into R, and then you re-run the function (will all the need arguments), it works.... Toy dataset # simulate toy data set.seed(12345) monthA_speed <-...
  6. gianmarco

    Function out of my package only works after being copied/pasted...Why?

    Thanks @Dason for replying back. The package (working, if we exclude the windAver() function) is on GitHub. The issue I was describing is with the abovementioned windAver() function: LINK I have tried again, making some modifications (e.g., specifying from which dependency some confusing...
  7. gianmarco

    Function out of my package only works after being copied/pasted...Why?

    Hello, as per title, I am trying to wrap my head around the issue I am experiencing. I am working on a function out of my 'GmAMisc' package; the function is part of a new version which is currently under construction. I am testing the new version, and I have hit 'install/reload', and all is...
  8. gianmarco

    inverting color palete used in a plot in R base

    Hello helicon, thanks for the suggestion. Indeed, I overlooked that....thanks for bringing that to my attention. Cheers Gm
  9. gianmarco

    inverting color palete used in a plot in R base

    Hello, I am trying to invert the color palette used when plotting a RasterLayer. See the attached example that can be reproduced with the code below: require(gdistance) r <- raster(system.file("external/maungawhau.grd", package="gdistance")) plot(r) The output is an image representing the...
  10. gianmarco

    wilcoxon mann whitney or t-test with same results

    Hello, just my 2 cents. First, do not consider MW test as a test of medians. That holds true under specific conditions. Secondly, are you planning to do those tests as a sort of predictors selection? I do not think it would be a sound approach. Best Gm
  11. gianmarco

    Hello, you can contact me at: gianmarco.alberti[at]um.edu.mt Cheers Gm

    Hello, you can contact me at: gianmarco.alberti[at]um.edu.mt Cheers Gm
  12. gianmarco

    t-test on ancient sacrificial victims' bones: which one?

    @ButtMike: are you sure you entered the dataset in the proper way? I have used SPSS in the past, and I recall that it is quite "tricky" to properly arrange data to get cross-tabulation. It requires the so-called "long form". I do not have SPSS right now, but I recall you should first define your...
  13. gianmarco

    Including Five-Number Summaries on a Side-By-Side Boxplots Graph

    To keep it simple, I would use annotations in the subtitle zone. cheese.matrix <- matrix(c(310,220,420,240,45,180,40,90,270,130,180,260,250,340,290,310), nrow=8, ncol=2) A <- 10 # calculate here for instance your 1st quartile B <- 20 # calculate here other statistics subtitle <- paste0("Here...
  14. gianmarco

    t-test on ancient sacrificial victims' bones: which one?

    Hello. I am glad that makes sense. Are you on ResearchGate or Academia? I would like to keep myself update about that interesting piece of research.
  15. gianmarco

    t-test on ancient sacrificial victims' bones: which one?

    Hello, thanks for taking the time to describe your previous and current research in detail. To cut the long story short, I understand that your main goal is to understand (or back up statistically) if the underrepresentation of small bones is statistically testable. Now, it could be I am wrong...
  16. gianmarco

    t-test on ancient sacrificial victims' bones: which one?

    @ButtMike: as an archaeologist myself, I am curious about your issue, and I would like to help. However, from your description, I couldn't wrap my head around your data (what they look like or are organized). Should you provide some more detail, possibly providing a sample dataset, I would not...
  17. gianmarco

    peeling the onion: plotting only the inner 95% of 1000 cumulative frequency curves

    @Dason: thanks indeed for your help, which has been much appreciated. As a token of my good will in trying to solve my problems by myself (at the best of my R programming skills), I am pasting below a sligthly modified version of the function, in which I added the expected CFD and, instead of...
  18. gianmarco

    Matt Whiteny U test Vs T test

    "The permutation test is useful even if we plan to use the two-sample t test. Rather than relying on Normal quantile plots of the two samples and the central limit theorem, we can directly check the Normality of the sampling distribution by looking at the permutation distribution. Permutation...
  19. gianmarco

    Question about chi-square test and single columns

    Apologies if I go back to the very core of your main question, but I do not fully understand the reason why you may want to "modify" the chi-sq test when it actually proves fit to your situation. What I mean is that chi-sq test is meant to test if a significant association exists between the...
  20. gianmarco

    peeling the onion: plotting only the inner 95% of 1000 cumulative frequency curves

    I will try to provide more details and reproducible examples to hopefully get further help. I am going to provide link to two .rtf files; I tried to paste the two datasets here, but there seems to be a 1000 words limitation. I have a set of distances; each value is the distance of a given point...