tom soyer [EMAIL PROTECTED] wrote:
I have a 2D chart that is divided into four quadrants, I, II, III, IV:
plot(1:10,ylim=c(0,10),xlim=c(0,10),type=n)
abline(v=5,h=5)
text(x=c(7.5,7.5,2.5,2.5),y=c(2.5,7.5,7.5,2.5),labels=c(I,II,III,IV))
I would like to fill each quadrant with a background
Hi,
I have a 2D chart that is divided into four quadrants, I, II, III, IV:
plot(1:10,ylim=c(0,10),xlim=c(0,10),type=n)
abline(v=5,h=5)
text(x=c(7.5,7.5,2.5,2.5),y=c(2.5,7.5,7.5,2.5),labels=c(I,II,III,IV))
I would like to fill each quadrant with a background color unique to the
quadrant. Does
The basic approach is:
1. call plot (sets up the main plotting)
2. call rect for each quadrant (or polygon if you prefer)
3. add the points with the points function (replotting any points
covered by the rectangles)
4. add any additional notation (calling functions such as text, axis,
etc.).
If
3 matches
Mail list logo