-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sextante]minor fixes and added new R script examples
- Loading branch information
Showing
11 changed files
with
114 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
##[Example scripts]=group | ||
##showplots | ||
##layer=vector | ||
##field=field layer | ||
dotchart(layer[[field]],main=paste("Dotplot of",field),xlab=paste(field),ylab="Observation number") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(dp0 | ||
S'ALG_CREATOR' | ||
p1 | ||
VFilipe S. Dias | ||
p2 | ||
sS'field' | ||
p3 | ||
VVector's field | ||
p4 | ||
sS'ALG_DESC' | ||
p5 | ||
VThis tools uses the "dotchart()" function to create a Cleveland dotplot of a given field. | ||
p6 | ||
sS'layer' | ||
p7 | ||
VVector layer | ||
p8 | ||
s. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
##[Example scripts]=group | ||
##showplots | ||
##layer=vector | ||
##field=field layer | ||
hist(layer[[field]],main=paste("Histogram of",field),xlab=paste(field)) |
22 changes: 22 additions & 0 deletions
22
python/plugins/sextante/r/scripts/Field_histogram.rsx.help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(dp0 | ||
S'ALG_CREATOR' | ||
p1 | ||
VFilipe S. Dias | ||
p2 | ||
sS'field' | ||
p3 | ||
VVector's field | ||
p4 | ||
sS'ALG_DESC' | ||
p5 | ||
VThis tool uses the "hist()" function to create a histogram, using Sturges rule. | ||
p6 | ||
sS'ALG_HELP_CREATOR' | ||
p7 | ||
VFilipe S. Dias | ||
p8 | ||
sS'layer' | ||
p9 | ||
VVector layer | ||
p10 | ||
s. |
14 changes: 14 additions & 0 deletions
14
python/plugins/sextante/r/scripts/Field_summary_statistics.rsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
##[Example scripts]=group | ||
##layer=vector | ||
##field=field layer | ||
Summary_statistics<-data.frame(name.i=rbind(length(layer[[field]]), | ||
length(unique(layer[[field]])), | ||
min(layer[[field]]), | ||
max(layer[[field]]), | ||
max(layer[[field]])-min(layer[[field]]), | ||
mean(layer[[field]]), | ||
median(layer[[field]]), | ||
sd(layer[[field]])),row.names=c("Count:","Unique values:","Minimum value:","Maximum value:","Range:","Mean value:","Median value:","Standard deviation:")) | ||
colnames(Summary_statistics)<-c(field) | ||
>Summary_statistics | ||
|
18 changes: 18 additions & 0 deletions
18
python/plugins/sextante/r/scripts/Field_summary_statistics.rsx.help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(dp0 | ||
S'ALG_CREATOR' | ||
p1 | ||
VFilipe S. Dias | ||
p2 | ||
sS'field' | ||
p3 | ||
VVector's field | ||
p4 | ||
sS'ALG_DESC' | ||
p5 | ||
VThis tool computes the following summary statistics for the input field:\u000a\u000a- Minimum value, using "min()"\u000a\u000a- Maximum value, using "max()"\u000a\u000a- Range, which the difference between the maximum and the minimum value\u000a\u000a- Mean value, using "mean()"\u000a\u000a- Median value, using "median()"\u000a\u000a- Standard deviation, using "sd"\u000a\u000a\u000a | ||
p6 | ||
sS'layer' | ||
p7 | ||
VVector layer | ||
p8 | ||
s. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
##[Example scripts]=group | ||
##layer=vector | ||
##field=field layer | ||
>table(layer[[field]]) |
18 changes: 18 additions & 0 deletions
18
python/plugins/sextante/r/scripts/Field_table_of_counts.rsx.help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(dp0 | ||
S'ALG_CREATOR' | ||
p1 | ||
VFilipe S. Dias | ||
p2 | ||
sS'field' | ||
p3 | ||
VVector's field | ||
p4 | ||
sS'ALG_DESC' | ||
p5 | ||
VThis tool created a table of counts for a given field, using the function "table()". | ||
p6 | ||
sS'layer' | ||
p7 | ||
VVector layer | ||
p8 | ||
s. |