Description Usage Format Details Value Methods Examples
This class contains methods for creating the graphs in Ellison & Miceli (2017 - Language 93(2):255-287).
These graphs are based on simulations from the classes TensorAgent
and PopulationSimulation
.
There is a method corresponding to each graph, which creates the graph in PNG format and writes it to the
current working directory.
1 |
R6Class
object.
A further method uses the Student t test to evaluate the significance of the difference in distribution between the monolingual and bilingual results from the experiment.
An object of class L2017.
Object of L2017
with methods for creating graphs for Ellison & Miceli (2017) published in Language 93(2):255-287.
$new()
Creates a new, empty lexicon object.
$draw_1ab(graph_number,language,side)
Draws graphs 1a and 1b, depending on arguments (see example).
$t_test()
Performs the Student t test comparing doppel rates between monolinguals and bilinguals in the experimental results.
$draw_2()
Draws graph 2.
$draw_3a()
Draws graph 3a.
$draw_3b()
Draws graph 3b.
$draw_4a()
Draws graph 4a.
$draw_4b(graphnum="4b")
Draws graph 4b.
$draw_4c()
Draws graph 4c.
$draw_6()
Draws graph 6.
$draw_7a()
Draws graph 7a.
$draw_7b()
Draws graph 7b.
$draw_8()
Draws graph 8.
$draw_9()
Draws graph 9.
$draw_10a(rx=0.2,ry=0.2,xc=0.5,yc=0.5,A=100,B=100,AB=100,
linetypes=c("solid","dashed"),
linecolours=c("red","green"),
fillcolours=c("red","green"))
Draws graph 10a - graphs 10b, 10c build on this function, changing the default parameter values.
$draw_10b()
Draws graph 10b.
$draw_10c()
Draws graph 10c.
$draw_all()
Draws graphs all graphs from the paper.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | library(bldR)
self$t_test();
self$draw_1ab("1a","SG","left");
self$draw_1ab("1b","E","right");
self$draw_2();
self$draw_3a();
self$draw_3b();
self$draw_4a();
self$draw_4b();
self$draw_4c();
self$draw_6();
self$draw_7a();
self$draw_7b();
self$draw_9();
self$draw_10a();
self$draw_10b();
self$draw_10c();
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.