choice
lets the user choose some Partition
he wants to export.choice(object, typeGraph = "bmp")
[ClusterLongData]
: Object containing the trajectories and all the Partition
found by kml
.[character]
for every selected Partition
, choice
export some graphs. typeGraph
set
the format that will be used. Possible formats are the ones available for sa
Partition
, four files are saved, plus two global files.choice
is a function that lets the user see the Partition
found by kml
.
At first, choice
opens a graphics window. On the left side, all
the Partition
contain in Object
are ploted by a
number (the number of cluster of the Partition). The level of the
number is proportionnal to a quality criteria (like Calinski &
Harabatz). One Partition
is 'active', it is the one marked by a
black dot.
On the right side, the trajectories of Object are drawn, according to the active Partition
.
From there, choice
offers numerous options :
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
When 'return' is pressed, the selected Partition
are
exported. Exporting is done in a specific named
objectName-Cx-y
where x is the number of cluster and y is the
order in the sublist. Four files are created
:
[object Object],[object Object],[object Object],[object Object]
This four file are created for each selected Partition. In addition, two
'global' graphes are created :
[object Object],[object Object]kml-package
Classes : ClusterLongData
, Partition
Methods : kml
Plot : plot
### Creation of articficial data
cld1 <- gald(25)
### Clusterisation
kml(cld1,3:5,nbRedrawing=2,toPlot='both')
### Selection of the clustering we want
# (note that "try" is for compatibility with CRAN only,
# you probably can use "choice(cld1)")
try(choice(cld1))
Run the code above in your browser using DataLab