43 Matching Annotations
  1. Nov 2025
    1. cor.mtest <- function(mat, ...) { mat <- as.matrix(mat) n <- ncol(mat) p.mat <- matrix(NA, n, n) diag(p.mat) <- 0 for(i in 1:(n-1)) { for(j in (i+1):n) { tmp <- cor.test(mat[,i], mat[,j], ...) p.mat[i,j] <- p.mat[j,i] <- tmp$p.value } } colnames(p.mat) <- rownames(p.mat) <- colnames(mat) return(p.mat) } p.mat <- cor.mtest(cor_data)

      I don't know what this part is doing, I assume you want to returns a matrix of p-values, but I don't think you need p-values in a matrix table. Cause I can tell from your plot, If p < .05, it show the correlation, but If p > .05, it won't show anything.

      If your goal is to evaluate the relationships between all variables, it may be more informative to display the full correlation matrix without masking non-significant values. In that case, you can remove the significance filter so the plot shows every correlation.

    2. polar

      if you want, you can add another layer "geom_jitter()", adds a small amount of random variation to the location of each point, so we can clearly visualizes data density.

      (But maybe ask Dr.Shane before you add this)

    3. alpha 0.65 0.59

      add one or two sentence to explain this alpha results, something like: "PREZEROSUM scale has borderline internal consistency, and the POSTZEROSUM scale has weak internal consistency, meaning the items may not be measuring the construct reliably."

    1. Two histograms depicting the distribution of nutritional knowledge scores and macro-nurtient accuracy scores.

      Maybe change the figure caption, instead of saying "Two histograms....", explain each by each, and try to make them different. And figure number like" Figure 1. " before each caption

    1. EFFSAFE1 == 1 ~ 6, # strongly disagree = 1

      I have check the survey you did, and is already in the correct order strongly disagree(1), disagree(2), ......, strongly agree(6).

      And you recode the strongly disagreee(1) to strongly disagreee(6). So the order is reverse.

      So the correct code is only recode -50 and -99 to NA is fine, and keep everything else as the orginal form.

    2. p-value = 4.394e-06

      Maybe write one sentence for each of the tests, talk about which of the variable you use and explain your p-value, by saying whether is significiant or not.

  2. Oct 2025