=====================================================
Nama Mahasiswa : Syafri Maulana Alfatih
NIM : 220605110139
Kelas : B
Mata Kuliah : Linear Algebra
Dosen Pengampu : Prof.Dr.Suhartono,M.Kom
Prodi : Teknik Informatika
Universitas : UIN Maulana Malik Ibrahim Malang
topo.colors()fungsi dalam Bahasa R digunakan untuk menghasilkan Vektor dengan panjang tertentu dengan setiap elemen sebagai warna unik pada skala RGB. Fungsi ini juga mengembalikan kode heksadesimal dari warna yang tersedia. Kode heksadesimal ini terdiri dari delapan digit. Ini karena dua digit terakhir menentukan tingkat transparansi (di mana FF buram dan 00 transparan).
# R program to illustrate
# topo.colors function
# Calling topo.colors() function
topo.colors(3)
## [1] "#4C00FF" "#00FF4D" "#FFFF00"
topo.colors(7)
## [1] "#4C00FF" "#004CFF" "#00E5FF" "#00FF4D" "#E6FF00" "#FFFF00" "#FFE0B3"
topo.colors(8)
## [1] "#4C00FF" "#0019FF" "#0080FF" "#00E5FF" "#00FF4D" "#E6FF00" "#FFFF00"
## [8] "#FFE0B3"
# R program to illustrate
# topo.colors function
# Using topo.colors() function to
# plot 6 different color
barplot(1:6, col = topo.colors(6))
```