Learn R Programming

x.ent (version 1.1.7)

xplot:

Description

Graph xplot, this graph compares the appearance of entities or relations during one period

Usage

xplot(v1 = "", v2 = "", t = "")

Arguments

v1
O or 1 entity1 value
v2
a vector of entity2 value
t
a time value, format (mm.yyyy) or inteval of time value, for example: t=c("02.2010","02.2012")

Value

This function returns a data frame so that users can check or use it to create new graphs.
dataframe
return a data frame

Details

Result after calling the function xparse has the following format:
  1. file_name:entity:$:list_value_found
  2. ...
  3. file_name:entity1:entity2:...:$$:value_e1:value_e2:....:negation

Function xplot will convert the data format above to a data frame. The xplot uses this data frame to display graphs. The data frame format:

  1. column file : name of file
  2. column date : (format mm.yyyy)
  3. column value_date, this value is used for creating graph
  4. column visible: if visible = 1 then this record will be used in graph
  5. column value of entite v1 or v2 or v1 combined with v2

See Also

xhist type graphique histogram xprop type graphique propotion xshow displays results of extracted data

Examples

Run this code
  xplot(v1="colza")
  xplot(v1="colza",v2=c("altice","rouille"))
  xplot(v1="colza",v2=c("altice","rouille"),t="09.2010")
  xplot(v1="colza",v2=c("altice","rouille"),t=c("09.2010","02.2011"))

Run the code above in your browser using DataLab