[R] how to make a contour plot in R?
Uwe Ligges
ligges at statistik.uni-dortmund.de
Tue Mar 14 13:05:49 CET 2006
Arnau Mir Torres wrote:
> Uwe Ligges wrote:
>
>> Arnau Mir Torres wrote:
>>
>>
>>
>>> Hello.
>>>
>>> I am an nxn data frame in the variable frame.
>>> I want to make a contour plot with it. That is, I want to plot a
>>> square of dimensions [1,n]x[1,n] with the gray level of square
>>> [i,i+1]x[j,j+1] equal to frame[i,j].
>>>
>>> How can I make it?
>>>
>>
>>
>>
>> See ?image
>>
>> Uwe Ligges
>>
>>
>>
>>
>>> Thanks,
>>>
>>> Arnau.
>>>
>>> ______________________________________________
>>> R-help at stat.math.ethz.ch mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide!
>>> http://www.R-project.org/posting-guide.html
>>>
>>
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide!
>> http://www.R-project.org/posting-guide.html
>>
>>
>>
> The problem is image works with matrices but I am a data frame. So, the
> question is: how can I transform a data frame in a matrix?
>
>
> Arnau.
?as.matrix
Uwe Ligges
More information about the R-help
mailing list