search for: schla

Displaying 3 results from an estimated 3 matches for "schla".

Did you mean: scala
2012 Sep 07
7
Producing a table with mean values
...1 0.0262 0.04570 0.00261 0.07451 6 Off_Mount 2 0.0314 0.17400 0.12800 0.33340 I tried the following script but get an error message *Error in results[i, "u.Pico", "u.Nano", "u.Micro"] <- sapply(z, mean) : * * incorrect number of subscripts * The code I used: *SChla <- read.csv("SM_Chla_data.csv")* *sm <- as.character(unique(SChla$Seamount))* * * *results <- matrix(NA,nrow=length(sm),ncol=6,dimnames=list(sm,c("u.Pico","u.Nano","u.Micro","sd.Pico","sd.Nano","sd.Micro"))) * * * *for (...
2012 Sep 11
4
Maintaining specific order when using aggregate or change order on axis
Hi All, I'm using the following code to produce some stacked bar graphs. *setwd("C:\\Users\\Tinus\\Documents\\NMMU\\R\\Seamounts")* *SChla <- read.csv("SM_Chla_data.csv")* * * *#Extract mean values from data file* * * *Coral <- SChla[185:223,] #Reduce SChla to Coral only* *coral <- with(Coral , aggregate(cbind(Pico, Nano, Micro), list(Depth),FUN=mean))* *rownames(coral) <- coral[,1] * *coral <- t(coral[,-1]) #...
2012 Sep 19
2
Help reproducing a contour plot
Hi All, I am trying to reproduce this using R instead. [image: Full-size image (38 K)] I tried using the following code *SChla <- read.csv("SM_Chla_data.csv")* *Atlantis <- SChla[16:66,]* *head(Atlantis)* * * Seamount Station Depth Pico Nano Micro Total_Ch dbar Latitude Longitud 16 Atlantis 1217 Surface 0.0639 0.1560 0.0398 0.2597 2.082 -32.71450 57.29733 17 Atlantis 1217 Shallow 0....