# [R] Requesting for help on the problem of "subscript out of bounds"

Michael Dewey ||@t@ @end|ng |rom dewey@myzen@co@uk
Sun Oct 7 14:46:47 CEST 2018

```If you look at the documentation for plot() you will see a type
parameter which can take a number of values including plot = "l" to get
lines, and so on.

On 07/10/2018 11:03, Subhamitra Patra wrote:
> Thanks a lot, Sir. I'll check them out.
>
> But, I have 1 more query that in which package   "b" and "l" functions are
> available?
>
> Can you please educate me about the usage of "b" and "I" in my code.
>
>
> I am writing my code here again.
>
> N<-ncol(ts)
>> r<-matrix(0, ncol = N, nrow = 1)
>> for (i in 1:N){
>         r[i]<-approx_entropy(ts[,i], edim = 2, r = 0.2*sd(ts[,i]), elag = 1)
> }
> plot (r)
>
> Here how to add "b" and "l" function?
>
>
>
> On Sun, Oct 7, 2018 at 3:19 PM Jim Lemon <drjimlemon using gmail.com> wrote:
>
>> plot(r) will give you a set of points with the values of r on the y
>> axis and 1:N on the x axis. If you want to add more series, look at
>> "points" or "lines". Also look at the options "b" and "l" for plot if
>> you want points and lines or just lines respectively.
>>
>> Jim
>>
>> On Sun, Oct 7, 2018 at 6:03 PM Subhamitra Patra
>> <subhamitra.patra using gmail.com> wrote:
>>>
>>> Hello friends,
>>>
>>> Finally, I became able to compute APEn values for each series.
>>>
>>> Actually, there was a small mistake in the code for the arguments of row
>> and columns. Now, after rectifying my mistakes as well as by taking the
>> suggestions from Rui Barradas and Jim, It became possible. Therefore, I
>> would like to say thanks to both of you.
>>>
>>> One small help (if possible) that I want to plot that particular APEn
>> values for each series.
>>> Only, I will write the code "plot (r)" or any other code is there?
>>>
>>>