Outils pour utilisateurs

Outils du site


public:tutorial_to_use_stylo_into_txm

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
public:tutorial_to_use_stylo_into_txm [2014/09/06 00:43]
slh@ens-lyon.fr
public:tutorial_to_use_stylo_into_txm [2014/09/06 00:53] (Version actuelle)
slh@ens-lyon.fr
Ligne 56: Ligne 56:
 {{:​public:​jj_nn_lemma_index.png|}} {{:​public:​jj_nn_lemma_index.png|}}
   *  let's call the '​stylo'​ method on the frequencies table:   *  let's call the '​stylo'​ method on the frequencies table:
-    * send the Index object to R (with the “Tools > Send to R” main menu or contextual menu)\\ → the index icon gets a small red “R” letter decoration to confirm the transfer to R\\ → the Console displays the name of the R symbol created (“Index1” for example): +    * send the Index object to R (with the “Tools > Send to R” main menu or contextual menu)\\ → the index icon gets a small red “R” letter decoration to confirm the transfer to R\\ → the Console displays the name of the R symbol created (“Index1” for example):\\ %%[enpos="​JJ.*"​] [enpos="​NN.*"​]:​enlemma >> Index1%%
- <​code>​[enpos="​JJ.*"​] [enpos="​NN.*"​]:​enlemma >> Index1</​code>​+
     * switch to the R perspective     * switch to the R perspective
- edit your R session script or create a new one (by clicking on the "New Session"​ button in the toolbar) +    * edit your R session script or create a new one (by clicking on the "New Session"​ button in the toolbar) 
-    * copy the following R code in the script : +    * copy the following R code in the script : <​code>​stylo(frequencies=t(subset(Index1$data,​ select= -F)), relative.frequencies=F)</​code>​ Remark: You can also directly modify '​Index1'​ value before giving it to stylo ''​%%Index1$data <- subset(Index1$data,​ select= -F)%%''​ then ''​%%stylo(frequencies=t(Index1$data),​ relative.frequencies=F)%%''​
- <​code>​ +
-stylo(frequencies=t(subset(Index1$data,​ select= -F)), relative.frequencies=F) +
- </​code>​\\ Remark: You can also directly modify '​Index1'​ value before giving it to stylo ''​%%Index1$data <- subset(Index1$data,​ select= -F)%%''​ then ''​%%stylo(frequencies=t(Index1$data),​ relative.frequencies=F)%%''​+
     * select the R code with the mouse and execute it through the contextual menu command “R > Execute Text Selection”\\ → choose Stylo parameters settings and press “OK”\\ → the result is displayed in a new window\\ {{:​public:​running_stylo.png|}}     * select the R code with the mouse and execute it through the contextual menu command “R > Execute Text Selection”\\ → choose Stylo parameters settings and press “OK”\\ → the result is displayed in a new window\\ {{:​public:​running_stylo.png|}}
-  ​* when finished, close the window by executing the “dev.off()” R code+    ​* when finished, close the window by executing the “dev.off()” R code
  
 ===== Displaying your graphics into TXM ===== ===== Displaying your graphics into TXM =====
public/tutorial_to_use_stylo_into_txm.txt · Dernière modification: 2014/09/06 00:53 par slh@ens-lyon.fr