R Programming Fonts Exercise



# Type family examples - creating new mappings
plot(1:10,1:10,type="n")
windowsFonts(
  A=windowsFont("Arial Black"),
  B=windowsFont("Bookman Old Style"),
  C=windowsFont("Comic Sans MS"),
  D=windowsFont("Symbol")
)
Create above display code in R and give the output of the following.
1) text(3,3,"Hello World Default")
2) text(4,4,family="A","Hello World from Arial Black")
3) text(5,5,family="B","Hello World from Bookman Old Style")
4) text(6,6,family="C","Hello World from Comic Sans MS")
5) text(7,7,family="D", "Hello World from Symbol")
6) Find out 2 more windows font and give the output of same.

No comments:

Post a Comment

Unleashing B2B Success: Mastering Event and Conversion Tracking with GA4

Tracking events and conversions is vital for B2B businesses using GA4 (Google Analytics 4) to optimize their marketing efforts. Here is a re...