У нас вы можете посмотреть бесплатно Add Legend to Plot in Base R (8 Examples) | Change Position, Color, Size, Shape of Point & Line Type или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
How to add a legend to a plot in Base R. More details: https://statisticsglobe.com/add-legen... R code of this video: set.seed(298346) # Create example data x <- rnorm(300) y <- rnorm(300) + x group <- rep(1:2, each = 150) plot(x, y, pch = 16, col = group) # Plot example data plot(x, y, pch = 16, col = group) # Draw plot without legend legend("topleft", # Add legend to plot legend = c("Group 1", "Group 2"), col = 1:2, pch = 16) plot(x, y, pch = 16, col = group) # Draw plot without legend legend("bottomright", # Add legend to plot legend = c("Group 1", "Group 2"), col = 1:2, pch = 16) plot(x, y, pch = 16, col = group) # Draw plot without legend legend(x = - 2, y = 1, # Add legend to plot legend = c("Group 1", "Group 2"), col = 1:2, pch = 16) plot(x, y, pch = 16, col = group) # Draw plot without legend legend("topleft", # Add legend to plot legend = c("Group 1", "Group 2"), col = 1:2, pch = 16, box.col = "orange", bg = "green") plot(x, y, pch = 16, col = group) # Draw plot without legend legend("topleft", # Add legend to plot legend = c("Group 1", "Group 2"), col = 1:2, pch = 16, cex = 3) plot(x, y, pch = 16, col = group) # Draw plot without legend legend("topleft", # Add legend to plot legend = c("Group 1", "Group 2"), col = 1:2, pch = 16, horiz = TRUE) plot(x, y, pch = 16, col = group) # Draw plot without legend legend("topleft", # Add legend to plot legend = c("Group 1", "Group 2"), col = 1:2, lty = 1) plot(x, y, pch = 16, col = group) # Draw plot without legend legend("topleft", # Add legend to plot legend = c("Group 1", "Group 2"), col = 1:2, lty = 1:2) Follow me on Social Media: Facebook: / statisticsglobecom LinkedIn: / statisticsglobe Patreon: / statisticsglobe Pinterest: https://www.pinterest.de/JoachimSchork Reddit: / joachimschork Twitter: / joachimschork