xprop {x.ent} | R Documentation |
Graph xprop
Description
This visualization is a type of 100% stacked histograme. The graph xprop
shows the distribution of the relationship between entities in the corpus. The total of the bar represents 100%.
Usage
xprop(v1,v2,type=1)
Arguments
v1 |
a vector of values |
v2 |
a vector of values |
type |
type of graph |
Details
After calling the function xparse
, the result has the following format:
file_name:entity:$:list_value_found
...
file_name:entity1:entity2:...:$$:value_e1:value_e2:....:negation
Function xprop
will convert the data format above to a data frame such as:
a list of columns that call the values of v2. Those columns will contain a value 0 or 1.
a column has a name "cat" - categorie.
a column has a name "val" - value.
Each line discribes the relevant information between values of vectorv1
and values of vectorv2
. If there exists a relationship between a value ofv1
with a value ofv2
then the column of value v2 will be 1, the column "cat" carrying value is the value ofv2
and the column "val" has the value current of v1.
Author(s)
Tien T. Phan
See Also
xhist
type graphique histogram
xplot
type graphique plot
Examples
xprop(v1=c("chou","colza"),v2=c("mouche du chou","rouille"))
v1 = as.vector(xdata_value("p")[["value"]])
v2 = as.vector(xdata_value("b")[["value"]])
xprop(v1,v2,type=2)