xprop
shows the distribution of the relationship between entities in the corpus. The total of the bar represents 100%.xprop(v1,v2,type=1)
xparse
, the result has the following format:
Function xprop
will convert the data format above to a data frame such as:
v1
and values of vector v2
. If there exists a relationship between a value of v1
with a value of v2
then the column of value v2 will be 1, the column "cat" carrying value is the value of v2
and the column "val" has the value current of v1.
xhist
type graphique histogram
xplot
type graphique plot 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)
Run the code above in your browser using DataLab