Learn R Programming

x.ent (version 1.1.7)

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:
  1. file_name:entity:$:list_value_found
  2. ...
  3. file_name:entity1:entity2:...:$$:value_e1:value_e2:....:negation

Function xprop will convert the data format above to a data frame such as:

  1. a list of columns that call the values of v2. Those columns will contain a value 0 or 1.
  2. a column has a name "cat" - categorie.
  3. a column has a name "val" - value. Each line discribes the relevant information between values of vector 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.

See Also

xhist type graphique histogram xplot type graphique plot

Examples

Run this code
  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