Re: [R] Plotting the ASCII character set.

2021-07-07 Thread Rolf Turner
Thanks to Ivan Krylov, David Winsemius and Duncan Murdoch for their informative replies to my cri de coeur. The most complete answer was however provided off-list by Andrew Simmons who wrote a new and carefully structured function plotASCII() to replace my old no-longer functioning plot_ascii()

Re: [R] Plotting the ASCII character set.

2021-07-04 Thread Duncan Murdoch
On 03/07/2021 9:59 p.m., Rolf Turner wrote: ... deletia ... Also note that there is a bit of difference between the results of using Encoding() and the results of using iconv(). E.g. if I do a <- "\x80" b <- iconv(a,"latin1","UTF-8") Encoding(a) <- "latin1" then when I type "a" I get the

Re: [R] Plotting the ASCII character set.

2021-07-04 Thread Ivan Krylov
On Sun, 4 Jul 2021 13:59:49 +1200 Rolf Turner wrote: > a substantial number of the characters are displayed as a wee > rectangle containing a 2 x 2 array of digits such as > > > 0 0 > > 8 0 Interesting. I didn't pay attention to it at first, but now I see that a range of code points,

Re: [R] Plotting the ASCII character set.

2021-07-03 Thread David Winsemius
Sent from my iPhone > On Jul 3, 2021, at 7:00 PM, Rolf Turner wrote: > >  >> On Sat, 3 Jul 2021 09:40:28 +0200 >> Ivan Krylov wrote: >> >> Hello Rolf Turner, >> >> On Sat, 3 Jul 2021 14:02:59 +1200 >> Rolf Turner wrote: >> >>> Can anyone suggest how I might get my plot_ascii() function

Re: [R] Plotting the ASCII character set.

2021-07-03 Thread Rolf Turner
On Sat, 3 Jul 2021 09:40:28 +0200 Ivan Krylov wrote: > Hello Rolf Turner, > > On Sat, 3 Jul 2021 14:02:59 +1200 > Rolf Turner wrote: > > > Can anyone suggest how I might get my plot_ascii() function working > > again? Basically, it seems to me, the question is: how do I > > persuade R to

Re: [R] Plotting the ASCII character set.

2021-07-03 Thread Ivan Krylov
Hello Rolf Turner, On Sat, 3 Jul 2021 14:02:59 +1200 Rolf Turner wrote: > Can anyone suggest how I might get my plot_ascii() function working > again? Basically, it seems to me, the question is: how do I persuade > R to read in "\260" as "\ub0" rather than "\xb0"? Part of the problem is that

[R] Plotting the ASCII character set.

2021-07-02 Thread Rolf Turner
I have (used to have?) a function plot_ascii() which would display the ascii character set in a graphical display. It simply used text() to place the symbols on a 16 x 16 grid. The labels used by text() were taken from a character vector that I called "all.ascii". According to my notes, the