├── LICENSE
├── README.md
├── data_B.csv
├── data_Cmu_E10.5.csv
├── data_Cmu_E11.5.csv
├── data_Cmu_E8.5.csv
├── data_Cmu_E9.5.csv
├── data_Cwt_E10.5.csv
├── data_Cwt_E11.5.csv
├── data_Cwt_E8.5.csv
├── data_Cwt_E9.5.csv
├── data_D1.csv
├── data_D2.csv
├── data_Ea.csv
├── data_Eb.csv
├── data_Ec.csv
├── data_F.csv
├── figure_example.R
├── figure_example.pdf
├── figure_example.png
├── figure_example.svg
├── image1.jpg
└── image2.png
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # scifig_plot_examples_R
2 | Scientific publication figure plotting examples with R.
3 |
4 | 
5 |
--------------------------------------------------------------------------------
/data_B.csv:
--------------------------------------------------------------------------------
1 | n,fraction1,fraction2,err1,err2
2 | 3,0.01,0.005,0.002,0.001
3 | 4,0.05,0.04,0.01,0.008
4 | 5,0.24,0.225,0.04,0.04
5 | 6,0.45,0.53,0.06,0.05
6 | 7,0.19,0.14,0.034,0.03
7 | 8,0.045,0.04,0.009,0.008
8 | 9,0.01,0.02,0.002,0.004
9 | 10,0.005,0,0.001,0
10 |
--------------------------------------------------------------------------------
/data_Cmu_E10.5.csv:
--------------------------------------------------------------------------------
1 | 65.8205529524502
2 | 41.6531035937204
3 | 83.152551557937
4 | 49.8115199468345
5 | 49.7305565969044
6 | 44.9995256006525
7 | 45.1256605549988
8 | 54.4260875488319
9 | 59.3898067636063
10 | 55.2654589200939
11 | 59.1173471779051
12 | 46.235427610441
13 | 57.6267963516239
14 | 48.5291927139915
15 | 68.6366348486041
16 | 74.2734952793967
17 | 60.6487719565292
18 | 84.786057725313
19 | 48.5480400989702
20 | 65.3386633487001
21 | 52.3899352375807
22 | 48.6507554603649
23 | 57.5822109522762
24 | 67.8970383500416
25 | 45.0397364373011
26 | 36.5613573799657
27 | 60.0366499016365
28 | 52.6932735705296
29 | 53.9281089566023
30 | 67.5736606957021
31 | 53.9476022283962
32 | 54.2741479383546
33 | 70.4077851758678
34 | 54.6481556145846
35 | 60.4091424302168
36 | 49.1581406653753
37 | 59.655677151569
38 | 57.092707914815
39 | 44.6581069131501
40 | 54.8138933538391
41 | 55.310677780828
42 | 68.9534191538903
43 | 50.6759544087888
44 | 65.1494597486622
45 | 52.0866432423026
46 | 48.7163381473606
47 | 56.9623907788505
48 | 53.0820740059476
49 | 63.8609173377662
50 | 69.3508728072075
51 | 43.918594861742
52 | 40.1339485419691
53 | 47.9636860176302
54 | 52.3626294120593
55 | 47.6899666215299
56 | 66.70934623327
57 | 47.6036564420278
58 | 46.4462375984477
59 | 37.1354633751926
60 | 28.4352412345882
61 | 49.317284429323
62 | 39.7967553834712
63 | 51.1200504829997
64 | 89.9445381630164
65 | 58.9838425665504
66 | 48.9544765236798
67 | 39.4502495746855
68 | 53.1342817405542
69 | 77.4269573461966
70 | 49.4436483287547
71 | 82.239850092544
72 | 70.58437635767
73 | 30.262491641059
74 | 64.3093089866025
75 | 60.2999565031281
76 | 72.3560256197538
77 | 40.5564946289917
78 | 55.3711507422376
79 | 56.0267992773933
80 | 56.5769380613516
81 | 66.9992559088336
82 | 59.5371870721189
83 | 63.3197974950725
84 | 53.4387071182716
85 | 53.8879690976582
86 | 64.2194530009369
87 | 38.13817438162
88 | 46.6385040560028
89 | 53.5027322154622
90 | 53.0976496113571
91 | 46.0243049939109
92 | 55.431571319898
93 | 60.9328007658431
94 | 60.8185985209417
95 | 55.6353020926962
96 | 48.7799678522732
97 | 52.5451326562458
98 | 54.5798650090393
99 | 61.774285453737
100 | 57.0345994953582
101 | 37.5665098680396
102 | 51.4414802520879
103 | 50.3611512216014
104 | 61.3682749102604
105 | 55.4435480146538
106 | 64.8662834741187
107 | 62.841494873935
108 | 46.2169685002261
109 | 57.5914131965011
110 | 58.0086668582521
111 |
--------------------------------------------------------------------------------
/data_Cmu_E11.5.csv:
--------------------------------------------------------------------------------
1 | 59.1890088518618
2 | 56.2107835047841
3 | 55.2994926733609
4 | 70.7916698405769
5 | 64.7330529679417
6 | 48.2574994441115
7 | 63.2107626882808
8 | 55.8564954899177
9 | 54.5760807254418
10 | 51.3230864223238
11 | 60.2021409743821
12 | 63.4194391191852
13 | 48.3437334986212
14 | 52.7239783061468
15 | 56.8960726372144
16 | 58.0139878340251
17 | 67.0538371096838
18 | 56.6622318629482
19 | 60.5850110851269
20 | 59.2510534999053
21 | 50.4949741224361
22 | 57.0558476030154
23 | 61.0584025897667
24 | 52.7791703590774
25 | 64.4631659684564
26 | 52.2445438695031
27 | 56.7234439395831
28 | 44.5300127340189
29 | 50.9568980312489
30 | 58.5473725355373
31 | 60.5454816944244
32 | 57.3988404666032
33 | 66.7227183053284
34 | 60.4688087395229
35 | 56.2592131452591
36 | 55.0777274410811
37 | 57.383926844346
38 | 67.5864019282867
39 | 65.4738619046073
40 | 66.9529866798847
41 | 58.3114215280906
42 | 56.5273850456214
43 | 56.2353365698152
44 | 61.684464515395
45 | 55.3505158559685
46 | 46.3484877537309
47 | 55.6909136265621
48 | 72.1333458665144
49 | 54.9871118794021
50 | 63.009606324092
51 | 57.097978297995
52 | 55.4169629881021
53 | 51.5280071936532
54 | 48.5373743865034
55 | 55.7150222248605
56 | 49.2113588380889
57 | 53.795783611417
58 | 62.179585698278
59 | 57.5116264374945
60 | 43.8912875539574
61 | 68.1005600287051
62 | 63.0091092848727
63 | 61.5165781695328
64 | 60.0060966410832
65 | 53.4578934689505
66 | 57.631665252223
67 | 59.3242253821183
68 | 58.9981706659672
69 | 64.668851282844
70 | 55.4409232072789
71 |
--------------------------------------------------------------------------------
/data_Cmu_E8.5.csv:
--------------------------------------------------------------------------------
1 | 40.0376253078157
2 | 34.4494870737266
3 | 33.4971571900859
4 | 37.9076623810452
5 | 38.3799653610893
6 | 39.4948119596739
7 | 39.8803763629151
8 | 48.0129233665844
9 | 32.9249865794136
10 | 40.5200505165726
11 | 40.9368041901928
12 | 49.4189987182495
13 | 45.3459455596609
14 | 45.155245507597
15 | 38.5315921920013
16 | 48.7421625990379
17 | 50.1490461451389
18 | 40.1161666571257
19 | 49.7231699091656
20 | 37.7391126683174
21 | 46.137918759145
22 | 42.1751325231794
23 | 43.4554162345088
24 | 35.477688506143
25 | 40.7509010376925
26 | 34.4153490978095
27 | 42.0358914711044
28 | 47.1545142231053
29 | 40.0933644472997
30 | 46.0360314164461
31 | 41.2959367267308
32 | 40.9928945811862
33 | 52.726017022066
34 | 37.9632282071833
35 | 44.5186590565088
36 | 48.3752989961283
37 | 49.6666360005074
38 | 38.2912150907391
39 | 32.5576871579266
40 | 45.5331939582947
41 | 38.7116576687106
42 | 45.6548028199712
43 | 55.9027372937827
44 | 45.7735695134433
45 | 39.124797055581
46 | 50.0512933266502
47 | 39.7125511748254
48 | 45.5582603117211
49 | 45.2862627845952
50 | 47.810825400476
51 |
--------------------------------------------------------------------------------
/data_Cmu_E9.5.csv:
--------------------------------------------------------------------------------
1 | 57.3251816935626
2 | 47.8349114415409
3 | 37.4338126448888
4 | 40.3207636941618
5 | 43.3047032564298
6 | 54.2942279159674
7 | 41.9509080856433
8 | 40.9257512485931
9 | 52.9415103414648
10 | 49.3862574078503
11 | 43.568729625025
12 | 32.0442993806243
13 | 46.9080784223882
14 | 51.1436315306842
15 | 43.8059105666289
16 | 46.3008980862153
17 | 54.4529334697157
18 | 42.1336087514681
19 | 41.8183839559596
20 | 45.8421897142687
21 | 55.2544476531291
22 | 57.0052074601186
23 | 54.6461204626057
24 | 56.2792819917431
25 | 51.4508525807595
26 | 61.4540400333363
27 | 50.5502681958676
28 | 47.9287755439976
29 | 43.4427164526205
30 | 53.3909451491064
31 | 45.210950275159
32 | 47.392471127299
33 | 50.3610752729937
34 | 45.8717439361254
35 | 54.2405626854066
36 | 53.9435194424377
37 | 65.6970942072608
38 | 51.7688688172168
39 | 62.2862983451951
40 | 66.5862192924827
41 | 57.8426563403993
42 | 54.9751940391918
43 | 39.5892469414114
44 | 46.909439445867
45 | 49.7500001246104
46 | 42.8911873113562
47 | 59.3888602992143
48 | 51.2691539000272
49 | 52.9897911957212
50 | 57.2326874222922
51 | 47.219881499858
52 | 47.8600595191786
53 | 57.9673918725383
54 | 45.755824707515
55 | 62.2328876331554
56 | 48.2307384024223
57 | 49.8264486286724
58 | 43.8725121264465
59 | 43.8531251036798
60 | 45.7670918454663
61 | 54.7509063702282
62 | 46.787680545911
63 | 44.7457019084103
64 | 51.8556609560933
65 | 46.1409493112473
66 | 49.0201247331562
67 | 59.9449945425861
68 | 47.3948170076959
69 | 63.2860244453921
70 | 58.5573134427047
71 | 48.2957921043054
72 | 52.0458596119319
73 | 44.1446118373311
74 | 47.6995331573096
75 | 53.2263573766765
76 | 56.7151934936236
77 | 46.8549343348944
78 | 35.2891084846156
79 | 47.1039114761922
80 | 43.0353533026989
81 | 48.3172881432771
82 | 59.8868208464902
83 | 49.3117123974366
84 | 56.9976853407255
85 | 52.7809749952341
86 | 55.3245532292517
87 | 41.0138258795512
88 | 50.6807218827813
89 | 66.416169657622
90 | 48.4368879374284
91 |
--------------------------------------------------------------------------------
/data_Cwt_E10.5.csv:
--------------------------------------------------------------------------------
1 | 69.3691280912472
2 | 78.6818338682255
3 | 68.2667636490106
4 | 85.2982741788403
5 | 80.9688535821718
6 | 81.2440384098972
7 | 91.7111042825711
8 | 67.220751658995
9 | 85.8830200303452
10 | 80.017796518897
11 | 86.6923629835977
12 | 77.3464964933886
13 | 73.1417114138829
14 | 84.3011412952207
15 | 96.3549828384694
16 | 82.255850473664
17 | 80.0193822727306
18 | 74.2999537978778
19 | 74.9890424356234
20 | 77.3095315690092
21 | 80.5654166220814
22 | 67.612498231082
23 | 66.6920191764428
24 | 87.5483234162777
25 | 71.963032987874
26 | 90.48631825475
27 | 80.1206222558076
28 | 66.2350956566874
29 | 64.7413102120399
30 | 73.878955491369
31 | 72.2535894458542
32 | 84.8356592257212
33 | 62.9230327147865
34 | 71.4534916054471
35 | 74.2004961865816
36 | 70.9500923186828
37 | 88.3734369634595
38 | 78.2451770526984
39 | 71.9889519671763
40 | 78.674746770494
41 | 73.1474564698096
42 | 91.6129947604728
43 | 70.810333486819
44 | 68.8081578554839
45 | 85.4665745066644
46 | 69.772417079641
47 | 85.3989011528023
48 | 76.2515972744038
49 | 92.7131180533576
50 | 84.1684753042726
51 | 48.5063223055401
52 | 87.3392311982771
53 | 56.5394275343277
54 | 94.5802279749345
55 | 71.6426168552152
56 | 97.7839359099569
57 | 85.2022855916511
58 | 64.001498647041
59 | 86.4925162830082
60 | 97.806375697671
61 | 67.6467840269379
62 | 86.6569736935313
63 | 73.5664415227602
64 | 83.8823979301437
65 | 85.8817992309123
66 | 82.2383895721425
67 | 76.4277134920081
68 | 68.4723765986467
69 | 65.52790657549
70 | 73.1351426076509
71 | 93.5403386527001
72 | 87.6944560893714
73 | 87.7553285068693
74 | 62.494795251826
75 | 91.3995745765075
76 | 78.0749049429539
77 | 104.469818456834
78 | 79.5681377256362
79 | 90.6309711117115
80 | 77.541881830264
81 | 68.6860977260986
82 | 103.173799603817
83 | 77.7824541988817
84 | 66.2566426657354
85 | 83.8528130470465
86 | 75.5135841938658
87 | 91.2610919805757
88 | 88.8477946265393
89 | 84.0571953506865
90 | 80.8614046220144
91 | 76.1568430366239
92 | 80.2775728967015
93 | 71.6157872471334
94 | 72.8307040042083
95 | 67.82056070231
96 | 81.3311446011738
97 | 85.3573671615429
98 | 73.627840129486
99 | 60.1174570352601
100 | 76.2696085016703
101 | 85.68510288685
102 | 68.1586420282115
103 | 58.1113541249894
104 | 95.2045684242927
105 | 79.0032909173155
106 | 72.8964612725173
107 | 91.0806589201233
108 | 88.3341569474138
109 | 76.7046434156198
110 | 95.8941498464731
111 |
--------------------------------------------------------------------------------
/data_Cwt_E11.5.csv:
--------------------------------------------------------------------------------
1 | 85.9543238532129
2 | 87.5301618606669
3 | 77.7007686172495
4 | 88.6131408028971
5 | 79.4887585039619
6 | 95.9756474669964
7 | 95.0968964701754
8 | 77.4815541563237
9 | 88.9534761956061
10 | 73.2330983121327
11 | 98.0256738659048
12 | 86.1214058838276
13 | 102.722205973209
14 | 77.6832220183781
15 | 89.191932007187
16 | 99.1060022112427
17 | 84.1175238106277
18 | 82.1932765858489
19 | 85.2867595399123
20 | 81.5514619302739
21 | 77.9174241808142
22 | 81.6037775541303
23 | 83.453547833606
24 | 73.7449731855859
25 | 79.0698989476695
26 | 77.5321737699412
27 | 78.2323328638385
28 | 89.5345874973599
29 | 83.6305093428683
30 | 92.903908418109
31 | 75.4602424380281
32 | 89.3155801417623
33 | 84.1061877865531
34 | 73.5438126319553
35 | 78.8131959598417
36 | 74.1088802548799
37 | 84.7295286997647
38 | 76.3630069909606
39 | 100.89521173647
40 | 93.2334400602565
41 | 79.245782950597
42 | 84.5213696590236
43 | 88.7941298691741
44 | 71.580313259481
45 | 87.9794647277912
46 | 93.5306995240398
47 | 81.3580929867358
48 | 71.1236910268324
49 | 79.2080522866867
50 | 84.3814773561476
51 | 89.0232862613547
52 | 90.6747907292838
53 | 67.5304784939655
54 | 79.62716548974
55 | 69.7354974769535
56 | 88.1474214562
57 | 96.5418136662805
58 | 83.8612109801476
59 | 79.549298393341
60 | 82.1627970608756
61 | 65.4114601665267
62 | 93.1061879811063
63 | 72.1028755205524
64 | 68.3505844744938
65 | 86.8466935273904
66 | 97.8760372805648
67 | 90.1095104704029
68 | 82.8272333068403
69 | 98.8549841713849
70 | 100.240734985008
71 |
--------------------------------------------------------------------------------
/data_Cwt_E8.5.csv:
--------------------------------------------------------------------------------
1 | 42.0231534315441
2 | 48.6086180192145
3 | 59.4429177651021
4 | 44.4709256444671
5 | 45.8791913778026
6 | 37.4391162510815
7 | 54.7078670427408
8 | 41.0501181430666
9 | 49.734092289716
10 | 34.4469714336658
11 | 48.258485118967
12 | 43.5922012057071
13 | 44.7419989753021
14 | 54.6933371333323
15 | 41.585945933396
16 | 41.3540581756515
17 | 52.2104634382051
18 | 39.3616396472208
19 | 52.4730752750606
20 | 44.3560106336907
21 | 37.5961172612138
22 | 40.6611276988538
23 | 34.9619321940111
24 | 47.7481711836869
25 | 45.42066827862
26 | 49.8801374172677
27 | 37.169415367784
28 | 60.210092772453
29 | 51.7422913980254
30 | 46.7829983593404
31 | 32.4666700472315
32 | 45.6094999763088
33 | 49.7975795544
34 | 52.4634561840654
35 | 62.6511586856736
36 | 44.7136663069121
37 | 58.6623770527958
38 | 55.3744761891473
39 | 38.3057820825054
40 | 36.1431924300171
41 | 48.7639073645354
42 | 34.6329690311057
43 | 38.320546745845
44 | 30.6188826878588
45 | 56.7984974704626
46 | 57.0226659930928
47 | 42.4077752093245
48 | 44.8110095808989
49 | 44.9310255230851
50 | 41.6995893218805
51 |
--------------------------------------------------------------------------------
/data_Cwt_E9.5.csv:
--------------------------------------------------------------------------------
1 | 57.1716435652241
2 | 66.6619363671157
3 | 50.9149524056221
4 | 68.2699436334885
5 | 55.4179671396149
6 | 70.8967115659325
7 | 53.7661806615795
8 | 57.1088484406355
9 | 67.0282384500332
10 | 69.1677135887322
11 | 65.3236151221537
12 | 69.314786869523
13 | 73.5047989126147
14 | 67.4578549115102
15 | 55.5665267387901
16 | 43.2787939697393
17 | 53.7692862506144
18 | 47.0875777784363
19 | 87.1876833515417
20 | 65.1251532898355
21 | 55.398542826564
22 | 86.5986058282673
23 | 64.6808962996307
24 | 50.8768680595717
25 | 69.0664807059441
26 | 75.3992924613927
27 | 59.5186633945559
28 | 82.0897978552346
29 | 64.0129391396651
30 | 66.0178119974159
31 | 62.5265638131648
32 | 56.4424888438124
33 | 68.4412305883574
34 | 79.9237326244011
35 | 52.1762352709889
36 | 62.499827288029
37 | 44.639344226227
38 | 38.8058142245449
39 | 90.464571822197
40 | 66.6376732234725
41 | 45.2547748649069
42 | 65.9969528978274
43 | 61.3484694507117
44 | 71.8804500697977
45 | 55.6118159612999
46 | 58.2683788127051
47 | 55.0902609329985
48 | 59.8413015331919
49 | 60.7681692057057
50 | 56.4418134041207
51 | 81.9744921930709
52 | 74.9007051794205
53 | 65.2037830240915
54 | 89.3019732062328
55 | 67.9720769382965
56 | 63.9704573298836
57 | 56.2640472429427
58 | 70.4765331405108
59 | 72.0803615882728
60 | 97.38311078785
61 | 67.5117822403502
62 | 69.9598216457999
63 | 67.5752386906301
64 | 43.5569726803623
65 | 86.2183632343331
66 | 44.6256489398663
67 | 70.3836236877045
68 | 68.3613421459321
69 | 53.4047360385456
70 | 75.3587631347632
71 | 65.8167893084434
72 | 36.8450247733279
73 | 58.2474048119503
74 | 54.3452409994274
75 | 70.8922017162769
76 | 75.6368604823219
77 | 57.7599208668081
78 | 57.6675516160412
79 | 55.6706053877368
80 | 59.6140127829331
81 | 60.494869551775
82 | 49.9067876841389
83 | 69.0189573610317
84 | 71.3180180493523
85 | 59.6346299667848
86 | 69.7754672178052
87 | 50.5619814793529
88 | 44.9354512046786
89 | 49.201037564726
90 | 57.7760372311394
91 |
--------------------------------------------------------------------------------
/data_D1.csv:
--------------------------------------------------------------------------------
1 | width,shear_stress
2 | 20,0.00174
3 | 6,0.01622
4 | 2,0.16065
5 | 1,0.65696
6 | 4,0.02312
7 |
--------------------------------------------------------------------------------
/data_D2.csv:
--------------------------------------------------------------------------------
1 | width,velocity
2 | 0.6000000,0.01726544
3 | 0.7484218,0.01507592
4 | 0.9335587,0.02141866
5 | 1.1644929,0.02538495
6 | 1.4525532,0.04250598
7 | 1.8118708,0.03747275
8 | 2.2600728,0.05833458
9 | 2.8191464,0.07434515
10 | 3.5165178,0.09323235
11 | 4.3863979,0.12565372
12 | 5.4714599,0.11249062
13 | 6.8249334,0.19224849
14 | 8.5132152,0.21529261
15 | 10.619127,0.28611650
16 | 13.245977,0.29305465
17 | 16.522631,0.42021676
18 | 20.609830,0.55698482
19 | 25.708077,0.76004248
20 | 32.067477,0.78390300
21 | 40.000000,0.83415913
22 |
--------------------------------------------------------------------------------
/data_Ea.csv:
--------------------------------------------------------------------------------
1 | t,C,err
2 | 12,0.27,0.03
3 | 24,0.19,0.02
4 | 36,0.17,0.01
5 | 48,0.13,0.04
6 | 60,0.09,0.03
7 | 72,0.10,0.01
8 | 84,0.09,0.02
9 | 96,0.07,0.02
10 |
--------------------------------------------------------------------------------
/data_Eb.csv:
--------------------------------------------------------------------------------
1 | t,C,pos_err,neg_err
2 | 12,0.16,0.03,0.01
3 | 24,0.11,0.02,0.02
4 | 36,0.08,0.01,0.03
5 | 48,0.06,0.02,0.02
6 | 60,0.07,0.03,0.03
7 | 72,0.06,0.01,0.01
8 | 84,0.03,0.02,0.02
9 | 96,0.01,0.02,0.02
10 |
--------------------------------------------------------------------------------
/data_Ec.csv:
--------------------------------------------------------------------------------
1 | t,C,neg_err_C,pos_err_C,neg_err_t,pos_err_t
2 | 12,0.37,0.03,0.01,2,2
3 | 24,0.31,0.02,0.02,3,1
4 | 36,0.22,0.01,0.03,2,4
5 | 48,0.23,0.02,0.02,4,2
6 | 60,0.16,0.03,0.03,0,2
7 | 72,0.14,0.01,0.01,2,5
8 | 84,0.13,0.02,0.02,5,4
9 | 96,0.11,0.02,0.02,1,3
10 |
--------------------------------------------------------------------------------
/data_F.csv:
--------------------------------------------------------------------------------
1 | K,n,amplitude,duration
2 | 32.5860247920663,3.0650181119781,21.9544436003387,2.32421435318404
3 | 9.01264402390275,2.35883555318762,60.1612164031412,1.00290492935782
4 | 10.8145886844689,1.82928053065308,25.9939648977286,0.540643509463801
5 | 23.5608128169398,1.70990942271618,61.188149177711,2.7394397377957
6 | 7.62643552325397,1.56692856031964,54.4194474155615,0.715243269524901
7 | 15.295502581964,2.27677466438,39.7919541391441,0.842364668927025
8 | 6.05309124368624,1.25210143347421,50.8111163219064,1.2470287588744
9 | 9.05384333693535,2.78618463187086,56.6936931474983,1.9333772127338
10 | 7.3040240402131,1.62318160500317,55.6223872729517,0.674418354891657
11 | 15.37442004547,1.43408092087316,29.1853457106347,2.18973228913681
12 | 8.02470914397487,1.88745367160399,24.9621239311026,0.452630135434252
13 | 9.50081996197662,1.91665627528713,60.3163670392867,0.137431962215383
14 | 2.63772328747602,1.58135567261975,46.7573487178526,2.97537862510163
15 | 11.2877416793854,1.87675597453298,26.9752315871866,0.543420869596807
16 | 13.2481315323755,2.87774683217625,32.9215268177185,1.55118487804514
17 | 10.646756473971,2.16062922304112,61.8407272760819,0.274400125974191
18 | 8.34187233785451,1.97692557462528,27.4389897218211,0.446056633019463
19 | 18.25151627963,3.24317972588621,29.8223199123266,2.06140681062269
20 | 21.9141912955936,2.88939005915635,48.7513648103522,1.64009119941692
21 | 4.75982318855184,1.45961032345838,59.2067784230207,1.4557953400907
22 | 6.78453041732144,1.68248194820913,50.1564636319386,0.758390458707096
23 | 5.85819332294888,1.5639494330065,27.6923195479548,1.04530956642637
24 | 14.0273314648608,2.92823851974304,33.9842782599355,1.6038681408452
25 | 6.15766412918333,1.02813984785978,32.938899004456,1.6069516370751
26 | 26.4449204932679,2.44184886315863,64.6485986316671,2.04204197124872
27 | 12.348949558808,1.79651635857303,20.0757742541736,0.924221865485706
28 | 13.4142970752252,3.61442678493192,38.6667169626897,3.11858838222261
29 | 20.9675719990409,2.70137229930866,25.8246485465665,1.46727699509334
30 | 20.4149860716623,2.71310486051269,22.01016132348,1.43025944095365
31 | 12.3422225321138,1.46564426495774,32.3121679025371,1.6146373947056
32 | 5.90796997846943,1.89573036847654,30.926023046004,1.24625678739383
33 | 4.06061893056863,0.907125688891036,33.1874945520728,1.94580626452041
34 | 7.71038413755357,1.57661785325915,68.8548076186319,0.698124887408484
35 | 20.0777995955695,2.63775053763925,40.2051173511793,1.37394863850999
36 | 10.2689873037384,2.10578167600479,50.4473769185763,0.194908651783108
37 | 4.97773692034662,1.25822632295568,39.1392635433429,1.42332042043182
38 | 4.89877599138568,1.52686092555317,23.7783368827832,1.41148182556042
39 | 4.69410647360601,0.680845914151291,49.00718339917,2.16882978380392
40 | 13.3395192245454,2.22991859794564,51.9128641623242,0.56317611793709
41 | 13.167815584654,2.1224287493063,67.819749386552,0.579994881690798
42 | 4.43823931586827,2.04419117228762,58.7236458696245,2.21318859172211
43 | 4.58174502140751,1.37888552417875,55.7963086771819,1.52549617887248
44 | 16.3940575686677,2.30049243612137,65.1819186249039,0.988904340681473
45 | 13.3627633416317,2.45193680699248,48.7838490784749,0.748433103975536
46 | 10.6259079521949,1.72134105551528,40.7441613865325,0.736709592871746
47 | 6.14428753617216,1.90121470648118,47.7147113240248,1.15052057225241
48 | 14.6870206749599,2.76045527923903,30.2300270428556,1.25606172743528
49 | 8.65643249385384,2.26973914665504,58.1300433580567,0.901064362681848
50 | 24.2024991650424,2.62487523203097,38.3607823694723,1.73710488832211
51 | 20.3403053816766,2.54442210522954,47.3144389979977,1.38869679042134
52 | 23.2508200322738,3.16673579683503,25.6297753555354,1.97841407886468
53 | 36.7704229043371,3.2135780244896,43.8118842740642,2.57351847306667
54 | 5.12124167895998,1.13761435174101,27.7025149329521,1.49635645120689
55 | 8.76040320554293,1.19666509510673,64.6206261689282,1.57127766561399
56 | 19.9913033966789,3.19597751437111,45.5058375863599,1.96662452030309
57 | 13.4058826142623,2.44190301931531,60.4238896857777,0.735327140334987
58 | 4.66164704579294,1.13512208861129,67.2046484370077,1.59523597242382
59 | 8.98170206095453,2.43205299017019,47.8526595469136,1.16989703229983
60 | 7.72646598959929,1.99405739792339,59.9267391693502,0.672572821907859
61 | 11.925241926664,1.99621561999477,64.4848522551131,0.470830275237455
62 | 7.80184431281607,1.01214255834778,40.561797807652,1.81976960498098
63 | 10.2061136484823,2.50513197121447,25.0576027604484,1.08690015563765
64 | 4.52609483251298,1.78036653781611,37.3328639074358,1.80235440234711
65 | 14.2533496658882,2.42949826483159,56.9915077087521,0.764919581437771
66 | 15.9778996522049,2.9957192731351,41.3185910827546,1.6560177391205
67 | 10.506651816474,2.15099549166308,59.663337815872,0.265851244184106
68 | 6.5187979485744,1.71122659534013,20.4950327989796,0.844708925755919
69 | 2.53481688218929,0.68230304430173,21.499411279107,2.72661460996172
70 | 10.9357281378319,1.8644598472135,49.0250367471308,0.492245479721489
71 | 6.74068142009154,1.5525247961182,38.4604285622018,0.824810061229251
72 | 12.5604334491588,2.5328538870233,61.7108903286996,0.897307536215211
73 | 9.74995977414144,1.15512782396002,44.842296313214,1.83301165892191
74 | 4.26628490108311,0.954576945431667,68.762296447386,1.8510680733522
75 | 11.0175895756055,2.84608083468624,40.0568411668939,1.71827310312807
76 | 10.7074138875137,2.27195716529875,47.1926480164426,0.500964755926123
77 | 6.91333921753595,2.41361021278905,55.3545843393376,1.73247334080582
78 | 10.0057324266267,1.21269582200012,49.4309375327593,1.7504470169619
79 | 13.0325898910285,1.61581671845769,45.5636331287899,1.42199193218505
80 | 22.3573683108334,2.80369210290798,67.1837658371113,1.61229025101585
81 | 33.6461180515898,3.24387378011096,52.236540316154,2.44798963769401
82 | 17.8029870290149,3.21192831244613,30.7047085196633,2.01311280186095
83 | 3.10735447363491,1.45242940258762,61.2405519640986,2.44113291200059
84 | 8.25935972498914,1.50959506443253,38.161475592522,0.837818955747815
85 | 8.12169946702497,2.07626311808375,59.1182150075465,0.675343797004791
86 | 9.38565070827732,2.36393884003235,30.1412203452514,0.9296694409405
87 | 20.6937386501687,3.11526366860419,21.8617353404952,1.85098405737491
88 | 7.91180527767172,1.79329980281326,37.5965694410122,0.459811770995282
89 | 4.17089877249878,1.70919454266854,68.1186294871204,1.93530099257901
90 | 7.91216543596559,1.41342155631792,31.22690560452,0.998309021283916
91 | 8.73063499587959,2.14699518295704,28.6758113116238,0.626808210506391
92 | 5.65674428937338,2.37930198451492,53.5496622972198,2.16390000727159
93 | 5.58900287652842,1.05642847211997,20.6258965250318,1.55635825388658
94 | 8.04599139126809,1.5132478896649,57.738970101961,0.814771138050891
95 | 3.93650015090787,1.21834664766072,29.1063036725069,1.82389907740654
96 | 3.87553913352761,1.07449667366122,57.6290545233181,1.88959902139218
97 | 6.78207531440865,1.6332412099756,54.5261714520968,0.769127269804793
98 | 7.40108207523785,1.57336196809808,31.7213050833926,0.718801110342389
99 | 4.45557005561806,1.37166049186563,49.1971898867117,1.58057993710203
100 | 13.10344780198,1.82446426789678,33.1175820394133,1.01819211946572
101 | 8.97977956491583,1.83373269278705,42.880492570219,0.275665404237846
102 | 8.67901765747435,1.85132764937557,51.0433439663683,0.287832729277579
103 | 8.46250128614725,1.31699741260438,50.0579024261815,1.26381336386634
104 | 6.5054015051186,1.21284132807911,35.3440314500922,1.29472809782309
105 | 15.4108982472451,2.88575228340891,50.9325513228312,1.46745024168015
106 | 4.92635186810879,2.4471457128293,45.0470890017428,2.6430277098042
107 | 4.26292046248489,1.05128193080938,47.5886371373454,1.76872925076624
108 | 6.46051358032065,1.93069679601112,45.7458694122282,1.0566578969462
109 | 5.5516105918987,1.61412887257819,50.3766368896762,1.16554601727486
110 | 19.3291289783018,1.91555227655007,22.774982032631,1.8723583782977
111 | 3.46395751330967,1.14008411671664,35.0354144693229,2.07225575809945
112 | 9.63137888470276,1.82841947743178,61.1288856072521,0.322961964363891
113 | 7.21981524673823,2.20567417853459,39.5824156331268,1.21597649988814
114 | 20.7482370153204,2.36860190520846,35.2302551110181,1.5045214648942
115 | 5.79616595063613,2.12456604663094,43.6706735195855,1.63981234246065
116 | 15.7728924632606,3.06311172466323,40.9681116236809,1.78973837197072
117 | 9.24095299967357,2.50285038443584,38.0449807354667,1.26708338887097
118 | 6.99304552620537,1.4533532844441,32.9116133509045,0.90770393772744
119 | 13.6960320518892,2.83535829182039,31.5887406368694,1.43550320812263
120 | 9.09080002588112,1.97398355719937,24.4642824300082,0.217174300408375
121 | 8.78654274191937,2.4676793938714,29.9726582136233,1.29405991948591
122 | 13.231924999846,2.14322272220882,21.4854171074068,0.576018353943318
123 | 5.15577789971125,1.98347013046309,22.5983143814887,1.72554915693513
124 | 3.76440820795216,1.07334604378299,61.2078022393865,1.9365892022689
125 | 6.08000982623768,2.07369553373799,63.2794809574048,1.42977055349287
126 | 6.88071389337289,0.815873206196513,42.8395067601926,2.09809063445315
127 | 5.23613101323031,1.06455527850433,30.9863003897583,1.56894830346447
128 | 7.045201608565,1.42293800469103,23.7009735949919,0.950744858225223
129 | 21.2912136182898,2.73653790829877,41.5551007931143,1.50590204249303
130 | 5.12208864493999,0.909039659561244,56.7424013403548,1.79871164968928
131 | 5.30184253086507,1.08749850127218,20.8508864118197,1.53227030600021
132 | 4.55082030904869,2.12380536584898,47.0261469950199,2.27396599144911
133 | 8.40381879429876,1.93764764155417,21.0435579472515,0.380255481159331
134 | 7.11533806817435,1.72928382311218,28.9544159666995,0.665180297724751
135 | 11.931158709841,1.74829340109641,20.6434921202549,0.938838317957117
136 | 9.1366725025492,2.06654226039456,41.7194518362296,0.355255093009862
137 | 9.83857389618141,1.28122081686274,23.2054397827797,1.56856113604434
138 | 29.0851608254661,2.68864286254597,55.3977252915442,2.11876083134141
139 | 19.733729473567,2.36282587371962,50.1434829009696,1.38799396622828
140 | 4.32661817199668,0.873517260083695,60.1308172506129,1.92605820803064
141 | 6.29715001238903,1.45013023577568,36.0421488189755,0.988421490560956
142 | 12.3323280328109,2.07543375806349,66.1200156583103,0.458141250324647
143 | 3.91024245856924,0.830352922949901,31.0772601989682,2.05750200386062
144 | 14.3161066641541,2.28101109484042,28.2451378459659,0.701392314644894
145 | 10.1249362987626,1.27892439423866,39.5692846806827,1.62451315963928
146 | 6.61521117365119,1.97607851506705,43.1666611246334,1.05656133380076
147 | 9.15576067674698,2.10146286978403,45.5774127017922,0.419290487365138
148 | 10.9002027630198,1.87176707041041,67.3425094133232,0.469406212594292
149 | 26.6582857109997,3.34662173409293,67.9468073916233,2.28782519178316
150 | 3.77192981705268,1.86915722815705,43.2531470658946,2.38976359101182
151 | 19.648101841526,2.02907977051837,45.2536788683757,1.74138386913151
152 | 8.40284811903456,1.75094081037288,61.856478125368,0.418668897871695
153 | 9.62820512558082,2.03073209436749,29.3241305945661,0.154524864838432
154 | 9.27103666766335,2.42462434305351,32.9966952026073,1.08815911150315
155 | 15.0017418873601,2.23849038912255,49.7305823210275,0.815358729644302
156 | 10.2025156299188,2.62536892032021,43.685716731051,1.35453439746727
157 | 14.980666634548,2.81851527812551,61.5352507556867,1.35463216773989
158 | 13.41131307014,2.18247590599472,22.7712844459795,0.585311799216386
159 | 17.5698583551415,2.1943337969066,39.2347052660706,1.24020930108114
160 | 8.50777757181748,1.78335561285962,25.2997567892037,0.370768190889858
161 | 7.78697101582996,1.58310823602849,67.4430607177965,0.686394145044181
162 | 11.1391045440345,2.32538815655843,58.1461545944627,0.571609952504114
163 | 16.397878213062,2.26694254542428,46.2663521246125,1.0079899937312
164 | 9.27864892175693,1.61574521081859,57.5086675960689,0.735474864736329
165 | 8.88742454971041,2.63998303505293,43.0497782893543,1.64790109382157
166 | 17.3595706037333,3.36399194231046,20.4107297737774,2.31668694264123
167 | 11.701158551506,3.03626491580335,48.408877287272,2.04658384482035
168 | 6.38649294846068,1.7404713428977,40.2589080489188,0.903636819022509
169 | 9.06745231702815,1.96978814079061,24.8175881087747,0.219145194496716
170 | 14.1480518558051,2.36334107421605,47.4907840660024,0.704480503283186
171 | 5.86879938030383,0.920254693912278,37.7807380048198,1.78703553496765
172 | 11.6512499947445,1.72380075501171,34.6503555411954,0.934374135912624
173 | 16.2827820716353,2.26951933529908,38.9452890741932,0.989708431924454
174 | 4.21646116039563,1.49854243707068,48.1262700979332,1.73947078237135
175 | 4.81206555019226,1.10486132312872,57.4165612662878,1.58701070299321
176 | 13.7514355082374,2.53245012304159,51.663402451673,0.876527771097137
177 | 11.3766591533841,2.17698284420238,60.3482427936551,0.300757640486727
178 | 2.4951908611985,0.408190584520677,41.2275146853909,2.91655300362254
179 | 5.91945005236929,1.92021640596254,39.0535000434692,1.2726650386024
180 | 6.64308009532481,2.10440090141338,46.7591453654034,1.24841019987923
181 | 6.95119368852982,1.64777556327359,63.9280889685492,0.723742642286314
182 | 37.0945853503724,2.99070905427037,22.496744813403,2.565311888958
183 | 9.78471331746374,1.98852270418171,37.5873786043962,0.0445310108945816
184 | 9.67990898022486,1.61910356844596,39.9412208279542,0.791110921227655
185 | 19.8976540344513,1.51874719591845,37.9323619252882,2.65748198270716
186 | 11.5173441832424,1.53907092175285,40.5841931692989,1.30482570351224
187 | 6.46987256159991,0.419106620560074,50.4879243500816,2.8681217369931
188 | 9.50610929442799,2.37097540947085,58.6002772110904,0.919687730552294
189 | 10.7235421941713,1.64711487915627,39.5141898219485,0.918485353379813
190 | 32.7445765607635,2.71294033781898,45.4723844448983,2.37677024310336
191 | 10.6810828766461,1.06345170699009,21.8944477401148,2.20192688058041
192 | 15.9111732202591,2.28955330411013,49.1900971041935,0.925800953803598
193 | 14.1158705863365,2.22203903461656,31.1470200295855,0.684211977375201
194 | 8.60702992808389,2.51476196573136,35.1969803842205,1.4405747431597
195 | 14.751619581046,2.29809448576804,69.8161053611567,0.760374606497237
196 | 14.8119241198991,2.53158727733758,66.4919111400502,0.907107578489392
197 | 12.9201353229183,1.32689590314813,33.3957068307325,2.01424181075176
198 | 10.782355714786,2.43707769181766,27.4276382648584,0.850178230468083
199 | 9.26901864417509,1.55675885114046,27.4102512367849,0.862846288116779
200 | 16.1480727318161,2.61400249773872,26.6703074330028,1.06773752225773
201 | 8.37686921590784,1.87969932579352,24.4239161963437,0.349397292408541
202 | 10.6546642709429,2.48547292027363,56.0571990758675,0.973961618093794
203 | 6.63065077633272,1.4782685784761,63.063815303766,0.910497307816107
204 | 5.638581051148,1.61018619446864,48.1951858412186,1.13010554336476
205 | 6.25006664561172,0.712489088701262,41.3950711912435,2.22416631622826
206 | 6.35381481148875,1.76945268787528,59.9323437031196,0.933820008406023
207 | 19.309308742493,2.30917709939966,54.0106383495983,1.37356062969869
208 | 3.00425585986497,1.8295907026735,30.6578929440005,2.93545238268263
209 | 3.97209551971271,1.39744000556531,38.2066225074447,1.8296500938709
210 | 25.9498099655257,2.90193343354729,61.6494976756615,1.88925373821126
211 | 15.6136278529281,2.14288850137064,65.3836921802864,0.991654937870571
212 | 9.90874215959305,1.4751536744115,53.6723462949676,1.1500802945264
213 | 6.33353491389551,1.00282911480479,69.3910467364443,1.66378365362389
214 | 20.5948661125387,2.74608729045977,43.3763687797082,1.46067795440978
215 | 4.83926044241695,1.47271051838161,52.7386287805834,1.42353049445994
216 | 3.06591149158349,0.0060536974705534,60.6774731460634,3.2811163660105
217 | 5.45002627633633,0.825785980663407,49.4100200668625,1.93636593499894
218 | 11.6564345846527,2.64063347138303,22.7986078926221,1.18945432052021
219 | 8.17799764211334,2.83660680135592,22.8403627364094,2.2510474987163
220 | 14.4772700902236,1.95789122831905,68.8443503081047,1.04266893113983
221 | 10.2265665927127,2.34560675048397,60.2059997837147,0.72945306498127
222 | 29.3863724782409,2.87729157479061,50.9816327851007,2.10708934894619
223 | 4.22827206460571,0.87965297056798,33.3461965385918,1.93683419438054
224 | 11.6211370710375,2.44038417721,20.311954613188,0.769748595575675
225 | 8.45425383412023,1.6871299345986,25.1724925681775,0.514921063902914
226 | 6.35111282503722,1.99623776695269,25.5089218764153,1.19360945301556
227 | 14.7457288497787,1.72447544744804,50.4376858372889,1.50750469945711
228 | 10.7405226332998,2.82028816229912,28.8831244641881,1.70149371051511
229 | 9.47772159167214,2.08225601087117,47.1412716639841,0.297215869551365
230 | 13.5606442481712,1.96451003901103,48.6885830830903,0.859666792010963
231 | 16.2993892871986,2.91281606553877,31.6537519136739,1.50248392152121
232 | 4.97683532917363,1.20101925203539,32.6567663502902,1.46507875654947
233 | 15.7959141573185,1.99604991888665,28.1536885979686,1.21362310097148
234 | 20.1646515947826,2.28876467476222,30.5511963872813,1.49826904565401
235 | 5.59796358404398,2.25908600260734,45.6550295925469,1.96666491307969
236 | 5.25806226652856,1.23309903122089,43.0202820279884,1.37619914524055
237 | 6.89135814964011,1.03714996170666,20.7029444933863,1.64724220527963
238 | 10.0061684996977,2.14832107689842,51.8987475395389,0.328482888944973
239 | 14.8835591918557,1.44290862034343,27.5280213139187,2.09422281438883
240 | 6.36518114610714,1.418885696892,22.8249130711724,1.00900160163728
241 | 6.55387435784005,0.867976385552192,20.2589693774759,1.9481614605587
242 | 18.7398101351414,1.48146268719019,20.6023781696612,2.57928571113558
243 | 5.29860230618999,1.5755894819387,33.499706349847,1.25519140233096
244 | 9.83486049361585,2.11560770530364,55.9414276507127,0.288323291829843
245 | 8.78986907701208,1.95064051187461,58.501782881899,0.279013766225967
246 | 6.95380094869131,1.4667430968825,20.7799182217287,0.891610721546531
247 | 8.31050080722044,1.43285319512272,43.1279279754577,0.999092665437524
248 | 6.76146958732735,1.57223352255101,59.1589718384256,0.806261040283981
249 | 6.49591871504192,2.29852749077167,36.8405667239904,1.66013940677807
250 | 5.58546135087014,1.80907799390353,58.5513133957796,1.29187518063333
251 | 8.57073391507671,1.80701468965592,40.9186830616282,0.338826950213159
252 | 22.8813787873045,2.478217501178,63.6444232064707,1.66856911094017
253 | 14.8321963487806,2.03773499705037,60.0138811070663,0.986942863615681
254 | 5.64189630447352,2.10461089511159,51.2775298900206,1.67724779051292
255 | 6.03626675517286,1.23719199904536,50.9982270294788,1.26884269604683
256 | 8.39699337820002,2.11065383218021,44.1662286482176,0.652814150642928
257 | 14.4933092976438,2.24430334191763,39.7810496367718,0.734637501442805
258 | 6.54532045088346,1.27163328271405,44.8942432082119,1.19782344860044
259 | 4.07339593300808,0.664837186193211,69.0327313478642,2.22706256059318
260 | 7.09497968012676,2.48967625131909,23.3556695681604,1.82572173927834
261 | 4.50914541282153,1.07038274847981,26.3420211120828,1.6869937150449
262 | 15.1677031032641,1.7846176156383,57.940536157927,1.4658804178216
263 | 6.48704788827709,0.941062583842559,60.8529188980005,1.79556635972625
264 | 17.6663333313007,2.35174586356141,30.1079929882741,1.13573675791853
265 | 24.1433537064206,2.84802275250159,69.1002382515696,1.75179694881503
266 | 3.86822551122254,1.06757722797263,56.0359372808012,1.89561594775212
267 | 13.8863440877794,2.25683276838522,20.0017852853743,0.641823757450401
268 | 3.68799536099822,1.48099182160723,21.9052192146789,2.04567234191865
269 | 9.05665270373255,2.12685137488777,64.241831163031,0.497233686252868
270 | 24.0484038950789,2.66780179029074,69.2560645233523,1.71668880950246
271 | 17.7015200718194,2.95264956488244,34.106849831345,1.56842149140506
272 | 7.63431809915799,1.43422174393654,54.4665874404548,0.939554112818243
273 | 15.6309586387979,2.45177233966842,37.3656003505256,0.897909379656779
274 | 5.36597785430513,1.3511952348969,45.5219245798965,1.26203733335679
275 | 2.93174405822488,0.809924844281473,54.8082428253762,2.44254495304431
276 | 20.1665153641214,1.99084213084791,36.8127088233003,1.86674821989174
277 | 8.71865301486879,2.77761345645594,41.2638798313921,1.98972439098259
278 | 22.7244780403954,2.33518593029322,53.4815925754364,1.75608608365677
279 | 7.30040653209734,2.44986756228379,48.638288443827,1.67577590502268
280 | 15.4297764075042,2.11820343880541,25.3912425534394,0.988334088997235
281 | 7.37614607653473,0.893154113736941,58.9662147449604,2.00867451099276
282 | 9.87092950206681,1.81492124018471,42.0640783384218,0.388995052758681
283 | 13.3015743149766,1.82450501061704,28.7200282618417,1.05619356065299
284 | 42.6892597570765,3.00510681155673,48.2546631253531,2.85768521980753
285 | 7.71442168408826,1.32792829207998,66.4051604032713,1.1500606666294
286 | 16.8653723051489,2.58840668063761,67.5055922734022,1.08943873193153
287 | 6.81427025011142,1.2166886434502,34.2599191429144,1.29737853018456
288 | 5.33676704925644,3.01923502393008,31.2844681172553,3.59673376808207
289 | 3.03883619677474,0.848117409849471,47.1320779625868,2.3697043576715
290 | 11.9591386536379,2.8832933444007,34.5647017134005,1.68151040684593
291 | 4.3609224773456,0.700201499570603,60.8043401961446,2.15134423135641
292 | 10.7076192569703,1.28383669218275,57.139805861242,1.7180663082407
293 | 10.6554630233162,1.43843200278832,68.891030135224,1.36631155894516
294 | 15.987997021606,3.165891535804,47.8866750821938,1.98168894976547
295 | 11.3845107136478,2.81826718898358,69.4607385595263,1.60787364870694
296 | 23.629556384238,1.62428810912448,41.3804105884573,2.89984712121983
297 | 7.02302021467431,2.13127677446395,22.6463081436036,1.15023558280608
298 | 7.60580239414923,2.34136717432602,27.5258782094132,1.35496886876423
299 | 15.6936261927601,2.75157766128823,40.6723328767382,1.23740057436719
300 | 8.84000531987559,1.84908203298755,26.2983121566897,0.267541654352203
301 | 8.91536793420579,2.38296702462649,42.7082600592638,1.07861474599955
302 | 5.73148635773738,1.28562795375949,41.579830539078,1.24146938279828
303 |
--------------------------------------------------------------------------------
/figure_example.R:
--------------------------------------------------------------------------------
1 |
2 | # Set working directory
3 | setwd(getwd())
4 |
5 | # Libraries/packages
6 |
7 | library(ggplot2) # Grammar of graphics
8 | library(patchwork) # Arranging multiple plots into a grid
9 | library(png) # Load JPEG, PNG and TIFF format
10 | library(scales) # Generic plot scaling methods
11 | library(viridis) # Default color maps from 'matplotlib'
12 | library(grid) # A rewrite of the graphics layout capabilities
13 | library(magick) # graphics and image processing
14 | library(rsvg) # Render svg image into a high quality bitmap
15 | library(ggforce) # Collection of additional ggplot stats + geoms
16 | library(latex2exp) # Use LaTeX Expressions in Plots
17 |
18 | # global font size
19 | base_size=12
20 |
21 | # Manual theme for most panels
22 | # documentation: https://ggplot2.tidyverse.org/reference/theme.html
23 | my_theme <- function() {
24 | theme(
25 | aspect.ratio = 1,
26 | axis.line =element_line(colour = "black"),
27 |
28 | # shift axis text closer to axis bc ticks are facing inwards
29 | axis.text.x = element_text(size = base_size*0.8, color = "black",
30 | lineheight = 0.9,
31 | margin=unit(c(0.3,0.3,0.3,0.3), "cm")),
32 | axis.text.y = element_text(size = base_size*0.8, color = "black",
33 | lineheight = 0.9,
34 | margin=unit(c(0.3,0.3,0.3,0.3), "cm")),
35 |
36 | axis.ticks = element_line(color = "black", size = 0.2),
37 | axis.title.x = element_text(size = base_size,
38 | color = "black",
39 | margin = margin(t = -5)),
40 | # t (top), r (right), b (bottom), l (left)
41 | axis.title.y = element_text(size = base_size,
42 | color = "black", angle = 90,
43 | margin = margin(r = -5)),
44 | axis.ticks.length = unit(-0.3, "lines"),
45 | legend.background = element_rect(color = NA,
46 | fill = NA),
47 | legend.key = element_rect(color = "black",
48 | fill = "white"),
49 | legend.key.size = unit(0.5, "lines"),
50 | legend.key.height =NULL,
51 | legend.key.width = NULL,
52 | legend.text = element_text(size = 0.6*base_size,
53 | color = "black"),
54 | legend.title = element_text(size = 0.6*base_size,
55 | face = "bold",
56 | hjust = 0,
57 | color = "black"),
58 | legend.text.align = NULL,
59 | legend.title.align = NULL,
60 | legend.direction = "vertical",
61 | legend.box = NULL,
62 | panel.background = element_rect(fill = "white",
63 | color = NA),
64 | panel.grid.major = element_blank(),
65 | panel.grid.minor = element_blank(),
66 | plot.title = element_text(size = base_size,
67 | color = "black"),
68 | )
69 |
70 |
71 | }
72 |
73 | # Panel A ----
74 |
75 | img1 <- magick::image_flip(magick::image_read("./image1.jpg"))
76 | img2 <- magick::image_flip(magick::image_read("./image2.png"))
77 |
78 | panel_A <- ggplot() +
79 | annotation_custom(rasterGrob(image = img1,
80 | x=0.27,
81 | y=0.49,
82 | width = unit(0.45,"npc"),
83 | height = unit(0.87,"npc")),
84 | -Inf, Inf, -Inf, Inf) +
85 | annotation_custom(rasterGrob(image = img2,
86 | x=0.73,
87 | y=0.49,
88 | width = unit(0.45,"npc"),
89 | height = unit(0.87,"npc")),
90 | -Inf, Inf, -Inf, Inf) +
91 |
92 | geom_ellipse(aes(x0 = 0.25,
93 | y0 = 0.3,
94 | a = 0.1,
95 | b = 0.04,
96 | angle = 0),
97 | color="yellow",
98 | size=1)+
99 | scale_x_continuous(limits = c(0,1))+
100 | scale_y_continuous(limits=c(0,1)) +
101 | geom_segment(aes(x=0.15,
102 | xend=0.2,
103 | y=0.75,
104 | yend=0.7),
105 | arrow = arrow(length=unit(0.30,"cm"),
106 | ends="last",
107 | type = "closed"),
108 | size = 1,
109 | color="white") +
110 | geom_segment(aes(x=0.3,
111 | xend=0.9,
112 | y=0.7,
113 | yend=0.7),
114 | arrow = arrow(length=unit(0.30,"cm"),
115 | ends="both",
116 | type = "closed"),
117 | size = 1,
118 | color="red") +
119 |
120 |
121 | annotate("text", x = 0.25, y = 0.5, label = "PNG",color="white") +
122 | annotate("text", x = 0.75, y = 0.5, label = "JPEG",color="white") +
123 | annotate("text", x = 0.25, y = 1, label = "image 1",color="black") +
124 | annotate("text", x = 0.75, y = 1, label = "image 2",color="black") +
125 | annotate("text", x = 0.39, y = 0.07, label = "20~mu*m",color="white",parse=T) +
126 | annotate("text", x = 0.89, y = 0.07, label = "20~mu*m",color="white",parse=T) +
127 | geom_segment(aes(x=0.33,xend=0.45,y=0.03,yend=0.03), size = 2,color="white") +
128 | geom_segment(aes(x=0.83,xend=0.95,y=0.03,yend=0.03),size = 2,color="white") +
129 | theme_void() +# blank plot w/o axes etc.
130 | theme(plot.margin = unit(c(0,0,1,0), "cm"),
131 | aspect.ratio = 1)
132 |
133 |
134 | # Panel B ----
135 |
136 | data_B = read.csv("./data_B.csv")
137 |
138 | # format data to ggplot's liking
139 | data_B = data.frame("n"=c(data_B$n,data_B$n),
140 | "sample"=c(rep("apical side",nrow(data_B)),
141 | rep("basal side",nrow(data_B))),
142 | "fraction"=c(data_B$fraction1,data_B$fraction2),
143 | "err"=c(data_B$err1,data_B$err2)
144 | )
145 |
146 | # define lognormal distribution to be called via ggplot2::stat_function
147 | sigma = 0.14
148 | n = seq(3,10,1)
149 | logn_dist <- function(n) exp(-(log(n)-log(6))^2/(2*sigma^2))/(sqrt(2*pi)*sigma*n)
150 |
151 |
152 |
153 | panel_B <-
154 | ggplot(data=data_B,(aes(x=n, # aes: aesthetics
155 | y=fraction,
156 | fill=sample)))+
157 | geom_bar(stat = "identity",
158 | position=position_dodge()) + # dodge overlapping objects side-to-side
159 | stat_function(fun=logn_dist,
160 | geom="line",
161 | linetype="solid",
162 | aes(x=n,
163 | y=logn_dist(n))) +
164 | geom_errorbar(aes(ymin=fraction-err,
165 | ymax=fraction+err),
166 | width=.2,
167 | position=position_dodge(.9)) +
168 | scale_fill_manual(values=c('#f2a340','#998fc2'))+
169 | scale_x_continuous(expand = c(0, 0), # prevent gap between origin and first tick
170 | breaks=c(seq(from = min(data_B$n),
171 | to = max(data_B$n),
172 | by = 1)),
173 | limits = c(min(data_B$n),max(data_B$n))) +
174 | scale_y_continuous(expand = c(0, 0),
175 | breaks=c(seq(0,0.6,0.1)),
176 | limits = c(0,0.6)
177 | )+
178 | my_theme() +
179 | # some extra theme tweaking
180 | theme(legend.position = c(0.18,0.95),
181 | legend.title = element_blank(),
182 | axis.ticks.x=element_blank(),
183 | axis.text.x = element_text(vjust=-0.5),
184 | axis.title.x = element_text(vjust=-0.5),
185 | legend.key.size = unit(0.4, "lines"),
186 | plot.margin = unit(c(0,1,0,0), "cm"),
187 | aspect.ratio = 1
188 | ) +
189 | xlab(expression(paste("number of neighbors ",italic("n")))) +
190 | ylab("fraction of cells (%)")
191 |
192 |
193 | inset_curve <- function(n) 180*(n-2)/n
194 |
195 | # now comes the inset plot
196 |
197 | inset <-
198 | ggplot() + geom_line(aes(n,inset_curve(n))) +
199 | annotate("text",
200 | x=6.5,y=160,
201 | label=TeX("$180^\\circ(\\textit{n}-2)/\\textit{n}$"),
202 | parse=TRUE,size=2) +
203 | scale_x_continuous(expand = c(0, 0),
204 | breaks=c(seq(3,10,1)),
205 | limits = c(3,10)) +
206 | scale_y_continuous(expand = c(0, 0),
207 | breaks=c(seq(60,180,20)),
208 | limits = c(60,180)
209 | ) +
210 | my_theme() +
211 | xlab(expression(italic(n)))+
212 | # expression doc: https://stat.ethz.ch/R-manual/R-devel/library/grDevices/html/plotmath.html
213 | ylab(expression(interior~angle~italic(theta[n])(degree))) +
214 | # some extra theme tweaking
215 | theme(
216 | panel.background = element_blank(),
217 | plot.background = element_blank(),
218 | axis.ticks.length = unit(-0.1, "lines"), # make ticks a bit shorter
219 | axis.title.x = element_text(size = 0.5*base_size,
220 | color = "black",
221 | margin = margin(t = -4)),
222 | # top (t), right (r), bottom (b), left (l)
223 | axis.title.y = element_text(size = 0.5*base_size,
224 | color = "black", angle = 90,
225 | margin = margin(r = -4)),
226 | axis.text.x = element_text(size = base_size*0.5,
227 | color = "black",
228 | lineheight = 0.9,
229 | margin=unit(c(0.1,0.1,0.1,0.1), "cm")),
230 | axis.text.y = element_text(size = base_size*0.5, color = "black",
231 | lineheight = 0.9,
232 | margin=unit(c(0.1,0.1,0.1,0.1), "cm"))
233 | )
234 |
235 |
236 | # create grob (grid graphical object) from the inset plot
237 | panel_B_inset <- ggplotGrob(x = inset)
238 |
239 |
240 | # now for some regular polygon drawing
241 | polygons <-
242 | ggplot() +
243 | ggforce::geom_regon(aes(x0=c(seq(3,10,1)),
244 | y0=rep(-0.3,8),
245 | sides = c(seq(3,10,1)),
246 | angle=0, r=0.3),
247 | fill=NA,
248 | color="black") +
249 | theme_void() + coord_fixed()
250 |
251 | # finally, we can combine everything to plot panel B
252 |
253 | panel_B <-
254 | panel_B +
255 | annotation_custom(grob = panel_B_inset,
256 | xmin=6.6, xmax=10.1, ymin=0.1, ymax=0.6) +
257 | annotation_custom(grob = ggplotGrob(polygons),
258 | xmin = 2.36, xmax = 10.68, ymin = -0.192, ymax = 0.085)
259 |
260 |
261 | # Panel C ----
262 |
263 | data_Cwt_E8.5 = read.csv( "./data_Cwt_E8.5.csv")
264 | data_Cwt_E9.5 = read.csv( "./data_Cwt_E9.5.csv")
265 | data_Cwt_E10.5 = read.csv("./data_Cwt_E10.5.csv")
266 | data_Cwt_E11.5 = read.csv("./data_Cwt_E11.5.csv")
267 | data_Cmu_E8.5 = read.csv( "./data_Cmu_E8.5.csv")
268 | data_Cmu_E9.5 = read.csv( "./data_Cmu_E9.5.csv")
269 | data_Cmu_E10.5 = read.csv("./data_Cmu_E10.5.csv")
270 | data_Cmu_E11.5 = read.csv("./data_Cmu_E11.5.csv")
271 |
272 | # format data to ggplot's liking
273 | data_C = data.frame(
274 | "type" = c(
275 | rep(
276 | "wildtype",
277 | nrow(data_Cwt_E8.5) +
278 | nrow(data_Cwt_E9.5) +
279 | nrow(data_Cwt_E10.5) +
280 | nrow(data_Cwt_E11.5)
281 | ),
282 | rep(
283 | "mutant",
284 | nrow(data_Cmu_E8.5) +
285 | nrow(data_Cmu_E9.5) +
286 | nrow(data_Cmu_E10.5) +
287 | nrow(data_Cmu_E11.5)
288 | )
289 | ),
290 | "dev_stage" = c(
291 | rep("E8.5", nrow(data_Cwt_E8.5)),
292 | rep("E9.5", nrow(data_Cwt_E9.5)),
293 | rep("E10.5", nrow(data_Cwt_E10.5)),
294 | rep("E11.5", nrow(data_Cwt_E11.5)),
295 | rep("E8.5", nrow(data_Cmu_E8.5)),
296 | rep("E9.5", nrow(data_Cmu_E9.5)),
297 | rep("E10.5", nrow(data_Cmu_E10.5)),
298 | rep("E11.5", nrow(data_Cmu_E11.5))
299 | ),
300 | "trachea_length" = c(
301 | data_Cwt_E8.5[, 1] ,
302 | data_Cwt_E9.5[, 1] ,
303 | data_Cwt_E10.5[, 1] ,
304 | data_Cwt_E11.5[, 1] ,
305 | data_Cmu_E8.5[, 1] ,
306 | data_Cmu_E9.5[, 1] ,
307 | data_Cmu_E10.5[, 1] ,
308 | data_Cmu_E11.5[, 1]
309 | )
310 | )
311 |
312 | panel_C <-
313 | ggplot(data=data_C,
314 | aes(x=dev_stage,
315 | y=trachea_length,
316 | fill=type))+
317 | geom_boxplot() +
318 | geom_point(position=position_jitterdodge(), # jitter for h-dist, dodge for grouped dists
319 | pch=21,
320 | alpha=0.4) + # transparency
321 | scale_x_discrete(limits=c("E8.5","E9.5","E10.5","E11.5")) +
322 | scale_fill_manual(values=c('#f2a340','#998fc2'))+ # custom colors in hex code
323 | my_theme() +
324 | theme(legend.position = c(0.18,0.95),
325 | legend.title = element_blank(),
326 | legend.key = element_blank()
327 | ) +
328 | scale_y_continuous(expand = c(0, 0),
329 | breaks=c(seq(20,120,by=20)),
330 | limits = c(20,120)
331 | )+
332 | xlab("developmental stage (days)") +
333 | ylab(TeX("tracheal length ($\\mu$m)"))
334 |
335 | # Panel D ----
336 |
337 | data_D1 = read.csv("./data_D1.csv")
338 | data_D2 = read.csv("./data_D2.csv")
339 | # format data to ggplot's liking
340 | data_D = data.frame("width"=c(data_D1$width,data_D2$width),
341 | "unit"=c(rep("shear_stress",nrow(data_D1)),
342 | rep("velocity",nrow(data_D2))),
343 | "value"=c(data_D1$shear_stress,data_D2$velocity)
344 | )
345 |
346 | curve_D1 = data.frame(width=data_D1$width,
347 | shear_stress=33.28/(pi*18*data_D1$width^2))
348 |
349 |
350 | panel_D1 <- ggplot(data=data_D1,
351 | aes(x=width,
352 | y=shear_stress)) +
353 | geom_point(fill="red",
354 | size=3,
355 | pch=22) +
356 | geom_line(data=curve_D1) +
357 | theme_void()+
358 | scale_x_log10(expand=c(0,0), # prevent gap between origin and first tick
359 | breaks=c(0.5,1,2,5,10,20,50),
360 | labels=c(0.5,1,2,5,10,20,50),
361 | limits=c(0.5,50)) +
362 | scale_y_log10( expand = c(0, 0),
363 | # using trans_format from the scales package, but one can also use expressions
364 | labels = trans_format('log10', math_format(10^.x)),
365 | breaks=c(0.001,0.01,0.1,1),
366 | limits = c(0.001,1)
367 | ) +
368 | annotation_logticks(sides = "l") +
369 | theme(
370 | line = element_blank(),
371 | # exclude everything outside axes bc it messes with positioning of grob in panel_D
372 | text = element_blank(),
373 | title = element_blank(),
374 | axis.line.y = element_line(colour = "black"),
375 | aspect.ratio = 1
376 | ) +
377 | ylab("shear stress (Pa)")
378 |
379 |
380 |
381 | panel_D <-
382 | ggplot(data=data_D2,
383 | aes(x=width,
384 | y=velocity))+
385 | # add plot of first dataset as grob as a trick to introduce two y-axes with different scalings
386 | annotation_custom(ggplotGrob(panel_D1)) +
387 | geom_point(fill="blue",
388 | size=3,
389 | pch=21) +
390 | my_theme() +
391 | geom_line(color="blue") +
392 | geom_vline(xintercept = 1.1,
393 | linetype="dashed") +
394 | geom_hline(yintercept = 0.9,
395 | linetype="dashed") +
396 | scale_x_log10(expand=c(0,0),
397 | breaks=c(0.5,1,2,5,10,20,50),
398 | labels=c(0.5,1,2,5,10,20,50),
399 | limits=c(0.5,50)) +
400 | annotation_logticks(sides = "b") +
401 | scale_y_continuous(expand = c(0,0),
402 | breaks = seq(0,1,0.1),
403 | limits = c(0,1),
404 | # putting the y axis of the second plot to the right
405 | position = "right",
406 | # now the secondary axis becomes the left axis
407 | # we need the axis text+title for panel_D1
408 | # They were excluded in panel_D1 bc they were messing with the positioning
409 | sec.axis = sec_axis(~.,
410 | name = "shear stress (Pa)",
411 | # rescale breaks bc sec_axis inherits scale from primary y axis
412 | breaks=rescale(c(-3,-2,-1,0),
413 | to = c(0,1)),
414 | labels = c(expression("10"^"-3",
415 | "10"^"-2",
416 | "10"^"-1",
417 | "10"^"0")))
418 |
419 | ) +
420 | # some extra theme tweaking
421 | theme(
422 | aspect.ratio = 1,
423 | plot.margin = unit(c(0.1,0,0,0.5), "cm"), # to match other panels
424 | axis.title.y = element_text(margin = margin(r=1)),
425 | axis.text.y = element_text(margin = margin(r=6)),
426 | axis.text.y.right = element_text(margin = margin(l=7)),
427 | axis.title.y.right = element_text(angle = 90)
428 | ) +
429 | #xlab(expression(lumen~width~(mu*m))) +
430 | xlab(TeX("lumen width ($\\mu$m)")) +
431 | ylab("relative flow velocity") +
432 | annotate(geom = "text",x =6 ,y =0.85 ,label = "italic(tau) == 0.5~Pa",parse=T) +
433 | annotate(geom = "text",x =1.4 ,y =0.4 ,label = "italic(b) == 1.1*mu*m",parse=T,angle=90) +
434 | annotate(geom = "text",x =6.5 ,y =0.6 ,label = "italic(tau) == frac(4*italic(mu*Q),pi*italic(a*b)^2)",parse=T)
435 |
436 |
437 |
438 | # Panel E ----
439 |
440 | data_Ea = read.csv("./data_Ea.csv")
441 | data_Eb = read.csv("./data_Eb.csv")
442 | data_Ec = read.csv("./data_Ec.csv")
443 | data_E = data.frame("gene"=c(rep("gene a",nrow(data_Ea)),
444 | rep("gene b",nrow(data_Eb)),
445 | rep("gene c",nrow(data_Ec))),
446 | "t"=c(data_Ea$t,data_Eb$t,data_Ec$t),
447 | "C"=c(data_Ea$C,data_Eb$C,data_Ec$C),
448 | "pos_err"=c(data_Ea$err,data_Eb$pos_err,data_Ec$pos_err_C),
449 | "neg_err"=c(data_Ea$err,data_Eb$neg_err,data_Ec$neg_err_C),
450 | "pos_err_t"=c(rep(NA, nrow(data_Ea)),rep(NA, nrow(data_Eb)),data_Ec$pos_err_t),
451 | "neg_err_t"=c(rep(NA, nrow(data_Ea)),rep(NA, nrow(data_Eb)),data_Ec$neg_err_t)
452 | )
453 |
454 | f1 = function(t) 0.2*exp(-t/48)
455 | f2 = function(t) 0.3*exp(-t/60)
456 | f3 = function(t) 0.4*exp(-t/72)
457 | t = seq(0,96,1)
458 |
459 | ribbon = data.frame(
460 | "f2" = 0.3*exp(-t/60),
461 | "t" = t
462 | )
463 |
464 | manual_pch =c(15,16,17) # available pch: type ?pch
465 |
466 | panel_E <- ggplot(data=data_E) +
467 | geom_point(aes(x=t,y=C,pch=factor(gene)),size=2) +
468 | geom_ribbon(data=ribbon, aes(x=t,ymin=0.85*f2,ymax=1.15*f2),
469 | fill="black",alpha=0.1) +
470 | stat_function(fun=f1, geom="line",linetype="dashed") +
471 | stat_function(fun=f2, geom="line") +
472 | stat_function(fun=f3, geom="line",linetype="dotted") +
473 | geom_errorbar(aes(x=t,ymin=C-neg_err, ymax=C+pos_err),
474 | width=2) +
475 | geom_errorbarh(aes(y=C,xmin=t-neg_err_t,xmax=t+pos_err_t))+
476 | scale_shape_manual(values=manual_pch) +
477 | my_theme() + theme(legend.title=element_blank())+
478 | theme(legend.position = c(0.9,0.95)) +
479 | scale_x_continuous(expand = c(0, 0),
480 | breaks = c(seq(0,96,12)),
481 | limits = c(0,96)
482 | ) +
483 | scale_y_continuous(expand = c(0, 0),
484 | breaks = c(seq(0,0.4,0.05)),
485 | limits = c(0,0.4)
486 | ) +
487 | theme(
488 | panel.grid.major = element_line("gray95", size = 0.1),
489 | # putting label closer to axis bc exponent makes it bigger
490 | axis.title.y = element_text(margin = margin(r = -9))
491 | ) +
492 | xlab("time (h)") +
493 | ylab(expression(paste("concentration (mmol",~cm^-3,")"))) +
494 | coord_cartesian(clip = "off") # to allow for plotting outside axes
495 |
496 |
497 | # Panel F ----
498 |
499 | data_F = read.csv("./data_F.csv")
500 |
501 | panel_F <- ggplot(data=data_F,
502 | aes(x=K,y=n,
503 | size=amplitude,
504 | fill=duration))+
505 | geom_point(pch=21) +
506 | my_theme() +
507 |
508 | scale_x_continuous(expand = c(0, 0),
509 | trans = 'log10',
510 | labels=c(1,10,100),
511 | breaks=c(1,10,100),
512 | limits = c(1,100)) +
513 | scale_y_continuous(expand = c(0, 0),
514 | breaks=c(seq(0,4,by=0.5)),
515 | limits = c(0,4)) +
516 | annotation_logticks(sides='b') +
517 | scale_size(range = c(1, 3)) +
518 | scale_fill_viridis(option="D") + # a color palette from the viridis package
519 | theme( legend.position = c(0.9,0.35)) +
520 | coord_cartesian(clip = "off") +
521 | xlab(expression(paste("dissociation constant",~~italic("K")," (M)"))) +
522 | ylab("Hill coefficient n")
523 |
524 |
525 |
526 | # Plotting ----
527 |
528 | wrap_plots(panel_A,panel_B,panel_C,panel_D,panel_E,panel_F) +
529 | plot_annotation(tag_levels = 'A')
530 |
531 | # RStudio instructions for saving the final plot:
532 | # Whenever you resize the 'Plots' window, click 'refresh current plot'
533 | # For best results save as SVG with a resolution of 1148 x 686
534 | # open SVG in inkscape, (do some optional post-processing) and 'save as' PDF
535 |
536 |
--------------------------------------------------------------------------------
/figure_example.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macromeer/scifig_plot_examples_R/08ea31cb7ccab53de315275b3807360617abedd4/figure_example.pdf
--------------------------------------------------------------------------------
/figure_example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macromeer/scifig_plot_examples_R/08ea31cb7ccab53de315275b3807360617abedd4/figure_example.png
--------------------------------------------------------------------------------
/image1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macromeer/scifig_plot_examples_R/08ea31cb7ccab53de315275b3807360617abedd4/image1.jpg
--------------------------------------------------------------------------------
/image2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macromeer/scifig_plot_examples_R/08ea31cb7ccab53de315275b3807360617abedd4/image2.png
--------------------------------------------------------------------------------