Kubke Lab:Research/ABR/Notebook/2013/10/15

From OpenWetWare
Jump to: navigation, search
Owwnotebook icon.png Hearing development in barn owls Report.pngMain project page
Resultset previous.pngPrevious entry      Next entryResultset next.png

General Entries

  • Insert content here...

Personal Entries

Fabiana

Testing if I can put knitr output into oww


<html>


<body> <h1>Test of knitr for openwetware log</h1>

<p>This is the first script I wrote to try to see if I could open and plot the data files</p>

<pre><code class="r"> getwd() </code></pre>

<pre><code>## [1] &quot;C:/Documents and Settings/mkub003.uoa/My Documents/Dropbox/Oris ABR dev data/Sandbox&quot; </code></pre>

<p>write path to working directory. need to write some kind of call function so that we can set the different directory paths from different computers. this is my directory on the work PC:</p>

<p>#setwd(&ldquo;C:/Documents and Settings/mkub003/My Documents/Dropbox/Oris ABR dev data/Sandbox&rdquo;)</p>

<p>##These are things I tried </p>

<p>list.files() #get list of files</p>

<p>owl233L0B &lt;- read.table(&ldquo;Copy233L0B.ABR.txt&rdquo;) dim(owl233L0B)</p>

<p>[1] 1001 5 class(owl233L0B) [1] &ldquo;data.frame&rdquo; names(owl233L0B) [1] &ldquo;V1&rdquo; &ldquo;V2&rdquo; &ldquo;V3&rdquo; &ldquo;V4&rdquo; &ldquo;V5&rdquo; Really Andy? How f&#39;ing descriptive is this eh? ok, so it seems you have v1-5 (variables), then on row 1: msec; left; right; spont; bin</p>

<p>These are the lines that I wrote to read the files</p>

<pre><code class="r"> owl233L0B &lt;- read.table(&quot;Copy233L0B.ABR.txt&quot;, header = T) #got it dim(owl233L0B) #get 1000 5 PASS </code></pre>

<pre><code>## [1] 1000 5 </code></pre>

<pre><code class="r">class(owl233L0B) #get data.frame PASS </code></pre>

<pre><code>## [1] &quot;data.frame&quot; </code></pre>

<pre><code class="r">names(owl233L0B) #get [1] &#39;msec&#39; &#39;left&#39; &#39;right&#39; &#39;spont&#39; &#39;bin&#39; PASS </code></pre>

<pre><code>## [1] &quot;msec&quot; &quot;left&quot; &quot;right&quot; &quot;spont&quot; &quot;bin&quot; </code></pre>

<pre><code class="r">

  1. fig.width=7, fig.height=6

par(mfrow = c(2, 2)) #puts the 4 graphs in a page plot(owl233L0B[c(1, 2)]) plot(owl233L0B[c(1, 3)]) plot(owl233L0B[c(1, 4)]) plot(owl233L0B[c(1, 5)]) </code></pre>

<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfgAAAH4CAMAAACR9g9NAAAACVBMVEX9/v0AAAD9/v3/vTJ9AAAAA3RSTlP//wDXyg1BAAAACXBIWXMAAAsSAAALEgHS3X78AAASOUlEQVR4nO2diZKkOAxEF/7/ozem6zLgQxKyLKTMmJjpLuy0k4cP6Kqe/3Yopf5b3QFojQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qQA+qfrgt38y6ok3Bc/eBb8Vf2dT9OwA31D07ADfUPTsWONbCp4du/qk4o/47XGSnZla1cVBBJKBr65zj5v+ZB2Onh3gu7XiZheC784izqQNPkZ2wRr/ef0p6TXX+D1Mds6u/rdfCBKeYxItu2zEB5nu+tViZ8fmrlsrbnaA79aKmx3gu7XiZheu8U+S9hr/JOns6kdeTqXY4UDZAX6RlY2ka3ztnjVQ+G6t4NkHazzLy6mka7ye1ToBvE61QNmxxi+yshHAu7OyEcC7s7IRwLuzshHAu7OyEcC7s7IRwLuzshHAu7OyEcC7s7IRwLuzshHAu7OyEcC7s7IRwLuzshHAu7OyEd5zJ6gWOzveZdutFTe7Onh/HzMB+Jq0wTv8YBnA16S9xocBn3qNZ3r9HQ0DfrKVjTDiBdUSj3j+Oufxw+NY42vigB/9IqU9MHhCdo8yHfHexgVGfE3Ka7zHYYE1viblXX2cET/bykbyqV4y4p2dHvFUn3fEvwYve1fv7PxIwXOze5Qt+NlDnukP8DWNPh9/rbwc/KsBeitC8OzsH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rTyqATyqATyqATyqATyqATyqATyqATyqATyqATyqATyqATyqATyqATyqAT6r/AS42mlrMKTaDAAAAAElFTkSuQmCC" alt="plot of chunk unnamed-chunk-2"/> </p>

<p>#need to look for parameter to change to line plot</p>

</body>

</html>

Andy

  • Enter content here

Oris

  • Enter content here