Skip to content

Commit 2e90191

Browse files
Update README.md
1 parent 1306a6b commit 2e90191

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ calendR() # Defaults to the current year
5151

5252

5353
``` r
54-
calendR(mb.col = 2, # Background color for the month names
55-
month.col = "white", # Text color of the month names
54+
calendR(mbg.col = 2, # Background color for the month names
55+
months.col = "white", # Text color of the month names
5656
special.days = c(1, 50, 12, 125, 80, # Color days of the year
5757
99, 102, 205, 266, 360),
5858
special.col = "pink", # Color of the special.days
59-
hjust = 0.5) # Horizontal alignment of the month names
59+
months.pos = 0.5) # Horizontal alignment of the month names
6060
```
6161

6262
![calendR](https://user-images.githubusercontent.com/67192157/92282070-331e9400-eefd-11ea-83c9-0b6d7b5dc6e5.png)
@@ -142,8 +142,8 @@ calendR(special.days = myfills,
142142
## Add background image
143143

144144
``` r
145-
calendR(mb.col = 4, # Background color for the month names
146-
month.col = "white", # Text color of the month names
145+
calendR(mbg.col = 4, # Background color for the month names
146+
months.col = "white", # Text color of the month names
147147
special.days = "weekend", # Color the weekends
148148
special.col = "lightblue", # Color of the special.days
149149
lty = 0, # Line type
@@ -154,7 +154,7 @@ calendR(mb.col = 4, # Background color for the month names
154154
title.size = 30, # Title size
155155
orientation = "p", # Portrait orientation
156156
start = "M", # Start the week on Mondays
157-
url = "https://i.pinimg.com/originals/10/1e/f6/101ef6a9e146b23de28fa2cd568ad17b.jpg") # Image
157+
bg.img = "https://i.pinimg.com/originals/10/1e/f6/101ef6a9e146b23de28fa2cd568ad17b.jpg") # Image
158158
```
159159

160160
<p align="center">
@@ -187,16 +187,16 @@ calendR(year = 2021, orientation = "portrait", pdf = TRUE, doc_name = "My_calend
187187
### Example 1
188188
``` r
189189
calendR(year = 2022, # Year
190-
mb.col = 2, # Background color for the month names
191-
month.col = "white", # Text color of the month names
190+
mbg.col = 2, # Background color for the month names
191+
months.col = "white", # Text color of the month names
192192
special.days = c(1, 50, 12, 125, 80, # Color days of the year
193193
99, 102, 205, 266, 359),
194194
special.col = "pink", # Color of the special.days
195-
hjust = 0.5, # Center the month names
195+
months.pos = 0.5, # Center the month names
196196
lty = 0, # Line type
197197
weeknames = c("Mo", "Tu", "We", "Th", # Week names
198198
"Fr", "Sa","Su"),
199-
bg = "#f4f4f4", # Background color
199+
bg.col = "#f4f4f4", # Background color
200200
title.size = 60, # Title size
201201
orientation = "p") # Orientation
202202
```
@@ -230,16 +230,16 @@ calendR(year = 2020, # Year
230230
``` r
231231
calendR(start_date = "2020-09-01", # Custom start date
232232
end_date = "2021-05-31", # Custom end date
233-
mb.col = 4, # Background color for the month names
234-
month.col = "white", # Text color of the month names
233+
mbg.col = 4, # Background color for the month names
234+
months.col = "white", # Text color of the month names
235235
special.days = "weekend", # Color the weekends
236236
special.col = "lightblue", # Color of the special.days
237237
lty = 0, # Line type
238238
weeknames = c("Mo", "Tu", # Week names
239239
"We", "Th",
240240
"Fr", "Sa",
241241
"Su"),
242-
bg = "#f4f4f4", # Background color
242+
bg.col = "#f4f4f4", # Background color
243243
title = "Academic calendar 2020-2021", # Title
244244
title.size = 30, # Title size
245245
orientation = "p", # Portrait orientation

0 commit comments

Comments
 (0)