[R] Convert one rectangle into two rectangles

Jim Lemon
Wed, 27 Apr 2022 09:59:21 -0000

Hi javad,
Let's think about it a little. There are only two ways you can divide
a rectangle into two other rectangles.
The dividing line must be straight and parallel to one side or the
other or you won't get two rectangles.
If there are no other constraints, you can take your pick.
A                  E                    B
-------------------------------------
|                   |                       |
-------------------------------------
C                 F                       D

AE = CF = 0.45 * AB

Alternatively the same equation can be used on the shorter sides.
If you want to cut it across the length, you can do it with an abacus.
While the IrregLong package can produce an abacus plot, I was unable
to find an R-based abacus.
For that I suggest:
https://toytheater.com/abacus/

Jim

On Wed, Apr 27, 2022 at 1:42 AM javad bayat <j.bayat194 at gmail.com>
wrote:
>
> Dear R users;
> I want to convert a rectangle into 2 new rectangles. I have a rectangle (18
> m * 200 m), and I want to subtract 45 percent of it's area as a new
> rectangle. Is it possible to do this in R?
> Sincerely.
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.