Last data update: 2014.03.03

R: Analysis of the test
plottest.idturtleR Documentation

Analysis of the test

Description

Analyze the number of measurements sets of other turtles and the number of these other turtles in the database better classified than the worst classified measurements set of the tested turtle. Also create automatically these two barplots

Usage

plottest.idturtle(test)

Arguments

test

Is the test result of the test.idturtle analysis

Value

The function return a dataframe, wich also is written in the hard disc, and plots as percentages the number measures and the number of turtles best classified that the worst classified measure of the tested turtle.

Author(s)

Aitor Valdeon

Examples

# Charge example data
data(data.comp, data.ref)
# Reduce target turtles to make faster the example execution
data.comp<-data.comp[1:3,]
data.ref<-data.ref[order(data.ref[,c("ID")]),]
data.ref<-data.ref[1:200,]
# Note that date column in our data is named in Spanish (Fecha)
identity<-turtle.idturtle(data.comp,data.ref,date="Fecha")
# Execute the test
test<-test.idturtle(data.comp,data.ref, date="Fecha")
# Plot
plot.test<-plottest.idturtle(test)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(IDTurtle)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/IDTurtle/plottest.idturtle.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plottest.idturtle
> ### Title: Analysis of the test
> ### Aliases: plottest.idturtle
> ### Keywords: test idturtle
> 
> ### ** Examples
> 
> # Charge example data
> data(data.comp, data.ref)
> # Reduce target turtles to make faster the example execution
> data.comp<-data.comp[1:3,]
> data.ref<-data.ref[order(data.ref[,c("ID")]),]
> data.ref<-data.ref[1:200,]
> # Note that date column in our data is named in Spanish (Fecha)
> identity<-turtle.idturtle(data.comp,data.ref,date="Fecha")
[1] "Reference data prepared"
[1] "Comparing turtle 1 with reference data"
[1] "Comparing turtle 2 with reference data"
[1] "Comparing turtle 3 with reference data"
[1] "Done!"
> # Execute the test
> test<-test.idturtle(data.comp,data.ref, date="Fecha")
[1] "Reading file 1 from 3"
[1] "Reading file 2 from 3"
[1] "Reading file 3 from 3"
[1] "Writing file in hard disc"
[1] "Done"
> # Plot
> plot.test<-plottest.idturtle(test)
[1] "Plotting"
[1] "Writing file in hard disc"
[1] "Done"
> 
> 
> 
> 
> dev.off()
null device 
          1 
>