Recent content by gianmarco

  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...