How to fetch Views output programatically in Drupal 8?

Views output can be fetched in the following way : 

use Drupal\views\Views;

$view = Views::getView('YOUR_VIEW_MACHINE_NAME');

$view->setArguments($args); //Set Arguments if any.

$view->setDisplay('YOUR_VIEW_DISPLAY');

$view->preExecute();

$view->execute();

$content = $view->render();

Tags